Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: tsi_sensor MMA8451Q
Diff: LED_line.h
- Revision:
- 1:1e448c750b63
- Parent:
- 0:225e4447fdd3
- Child:
- 3:9262b505d7a8
--- a/LED_line.h Sun Jun 07 19:50:51 2020 +0000 +++ b/LED_line.h Sat Jun 13 22:53:37 2020 +0000 @@ -3,13 +3,14 @@ #define LED_OFF 1 #define LED_ON 0 -#define L_CYCLE 2400 +//#define L_CYCLE 2400 +#define L_CYCLE 1000 -#define L_LED_OFF ((unsigned long int)(0.01*L_CYCLE)) -#define L_LED_ON ((unsigned long int)(0.99*L_CYCLE)) +#define L_LED_OFF ((unsigned long int)(0.002*L_CYCLE)) +#define L_LED_ON ((unsigned long int)(0.100*L_CYCLE)) -#define RAMP_SLOPE 50 -#define ON_TIMEOUT 500 +#define RAMP_SLOPE 20 +#define ON_TIMEOUT 1000 class LED_line