[/SIZE][/COLOR][COLOR=#696969][SIZE=3]
[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3]void setup() {[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] [/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] pinMode(2,INPUT);[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] [/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] pinMode(3,INPUT);[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] [/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] pinMode(5,OUTPUT);[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] [/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] pinMode(4,OUTPUT);[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3]
[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3]}[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3]
[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3]
[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3]void loop() {[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3]
[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] [/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] if (digitalRead(2))[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] {[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] [/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] digitalWrite(4, HIGH);[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] digitalWrite(5, LOW);[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3]
[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3]} [/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] [/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] if (digitalRead(3))[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] {[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] [/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] digitalWrite(4, LOW);[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] digitalWrite(5, HIGH);[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] [/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] }[/SIZE][/COLOR]
[COLOR=#696969][SIZE=3] }