30
edits
Changes
no edit summary
int val1 = 0; // variable for reading the pin status<br>
int val2 = 0;<br>
void setup() {<br>
pinMode(turn1, OUTPUT); // declare turn pins as output<br>
digitalWrite(1,HIGH);<br>
}
void loop(){
val1 = digitalRead(tilt1); // read input value