dziękuje bardzo za odpowiedź ale niestety mam błąd
Kod:
C:\Users\Filip\Documents\Arduino\sketch_mar08a\sketch_mar08a.ino: In function 'void on_off_SW()':
sketch_mar08a:13:35: error: 'SW_' was not declared in this scope
uint8_t odczyt_SW = digitalRead(SW_); // Odczyt stanu przycisku do zmiennej GPIO 0
^
exit status 1
'SW_' was not declared in this scope