lowpass gửi vào
- 1847 lượt xem
byte button1 = 2; byte button2 = 3; byte led = 13; void setup() { pinMode(button1, INPUT_PULLUP); pinMode(button2, INPUT_PULLUP); pinMode(led, OUTPUT); } void loop() { while((!digitalRead(button1))&&(!digitalRead(button2))) { digitalWrite(led, HIGH); } digitalWrite(led, LOW); }