added arduino archive programs to /firmware/ref/archive-code/arduino
[athena:athena.git] / firmware / ref / archive-code / arduino / BotCode1 / BotCode1.pde
1 void setup()
2 {
3   pinMode(17,INPUT);
4   pinMode(19,INPUT);
5   
6   analogWrite(6,0);
7   analogWrite(11,0);
8 }
9
10 void loop()
11 {
12   if(digitalRead(19)==1)
13   analogWrite(5,200);
14   
15   else
16   analogWrite(5,0);
17   
18   if(digitalRead(17)==1)
19   analogWrite(10,200);
20   
21   else
22   analogWrite(10,0);
23   
24 }
25   
26   
27   \r