Fading and Blinking a LED using Arduino + Code Explained

Поделиться
HTML-код
  • Опубликовано: 3 дек 2024

Комментарии • 3

  • @oscarcollinsiv
    @oscarcollinsiv 2 года назад +1

    Im trying to figure out how to fade the led on and keep it on when it gets there. If i just delete the fade off section of the loop it cuts off and fades on repeatedly.

    • @ElectronicsSimplified7
      @ElectronicsSimplified7  2 года назад +1

      You need to remove the entire code from void loop()
      And paste the fading in code in the void setup()

    • @ElectronicsSimplified7
      @ElectronicsSimplified7  2 года назад +1

      By doing this the code will run only once and not in a loop. And the fading in will remain with Max 255