added arduino archive programs to /firmware/ref/archive-code/arduino
[athena:athena.git] / firmware / ref / archive-code / arduino / Analog_LDR_led / Analog_LDR_led.pde
1 void setup()
2 {
3   pinMode(12,OUTPUT);
4   
5 }
6
7 int i;
8 void loop()
9 {
10   i=analogRead(3);
11   
12   if(i>300)
13   digitalWrite(12,1);
14   
15   else
16   digitalWrite(12,0);
17   
18  
19 }\r