![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
darkness activated switch
Diff: main.h
- Revision:
- 1:8cf180275a19
- Parent:
- 0:aa10f42a839d
--- a/main.h Sat Feb 11 14:13:27 2012 +0000 +++ b/main.h Sun Mar 15 17:16:15 2015 +0000 @@ -2,8 +2,10 @@ #define MAIN_H enum {LedOff = 0, LedOn = 1}; +const float THRES_ON = 0.5; // when to turn the led on +const float THRES_OFF = 0.4; // when to turn the led off -AnalogIn myldr (p20); -DigitalOut myled (LED1); +AnalogIn myldr(p20); +DigitalOut myled(LED2); #endif