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