| Line 81... |
Line 81... |
| 81 |
} |
81 |
} |
| 82 |
|
82 |
|
| 83 |
void led_blink() |
83 |
void led_blink() |
| 84 |
{ |
84 |
{ |
| 85 |
digitalWrite(3, LOW); // set the LED off |
85 |
digitalWrite(3, LOW); // set the LED off |
| 86 |
delay(100); |
86 |
delay(20); |
| 87 |
digitalWrite(3, HIGH); // set the LED on |
87 |
digitalWrite(3, HIGH); // set the LED on |
| 88 |
} |
88 |
} |
| 89 |
|
89 |
|
| 90 |
/*int light_sensor_write( unsigned int data, unsigned int address) |
90 |
/*int light_sensor_write( unsigned int data, unsigned int address) |
| 91 |
{ |
91 |
{ |
| Line 248... |
Line 248... |
| 248 |
} |
248 |
} |
| 249 |
// if the file isn't open, pop up an error: |
249 |
// if the file isn't open, pop up an error: |
| 250 |
else { |
250 |
else { |
| 251 |
Serial.print("error opening "); |
251 |
Serial.print("error opening "); |
| 252 |
Serial.println(filename); |
252 |
Serial.println(filename); |
| 253 |
while(true); |
- |
|
| 254 |
} |
253 |
} |
| 255 |
delay(2000); |
254 |
delay(2000); |
| 256 |
} |
255 |
} |
| 257 |
|
256 |
|