Changes

Jump to: navigation, search

User:S8brown

2 bytes removed, 02:48, 12 June 2009
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
30
edits

Navigation menu