added arduino archive programs to /firmware/ref/archive-code/arduino
[athena:athena.git] / firmware / ref / archive-code / arduino / sketch_jun10a / sketch_jun10a.pde
1 void setup()
2 {
3   pinMode(11,OUTPUT);
4   pinMode(12,OUTPUT);
5   
6 }
7 void loop()
8 {
9   
10   Serial.print(analogRead(14));
11   Serial.println(analogRead(15));
12   if(analogRead(14)>analogRead(15))
13 {
14   digitalWrite(11,1);
15   digitalWrite(12,0);
16   
17 }
18
19 else
20 {
21   
22   digitalWrite(11,0);
23   digitalWrite(12,1);
24   
25 }
26 }
27   
28   \r