Playing with LEDs in Arduino Uno

Or similar "Hilf dir selbst, dann hilft dir Gott." :grinning:

But I can give the @hekk_tech some hints

  • LED lights up translates to a digitalWrite to the respective OUTPUT pin
  • to get the current logical value on a pin, use digitalRead
  • if (conditon) { } can control the execution of the code in the braces
  • conditions often look like age == 21 or digitalRead(somePin) == LOW
  • conditions can be combined with a couple of operators which include and and or
  • actions that should be executed all over, belong in loop
1 Like