![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Predfined parameters
Fork of Programmable_IR_Beacon by
Diff: main.cpp
- Revision:
- 1:0c6b12a40074
- Parent:
- 0:d88fd55a27a6
diff -r d88fd55a27a6 -r 0c6b12a40074 main.cpp --- a/main.cpp Wed Mar 19 15:09:11 2014 +0000 +++ b/main.cpp Thu Sep 04 14:28:17 2014 +0000 @@ -19,6 +19,8 @@ DigitalIn button2(p24); //"SELECT" Push-button PwmOut out_narrow(p21); //PWM Output for the narrow (high intensity) LED driver PwmOut out_wide(p22); //PWM Output for the wide-angle LED driver +//DigitalOut out_narrow(p21); //PWM Output for the narrow (high intensity) LED driver +//DigitalOut out_wide(p22); //PWM Output for the wide-angle LED driver Display display; Timer system_timer; //System timer is used for timer the on-off periods for the LEDs @@ -28,7 +30,7 @@ char mode = 0; char power = 1; char duty = 2; -char frequency = 2; +char frequency = 7; int on_period; int off_period;