Or similar "Hilf dir selbst, dann hilft dir Gott." ![]()
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 == 21ordigitalRead(somePin) == LOW - conditions can be combined with a couple of operators which include
andandor - actions that should be executed all over, belong in loop