![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
For LIGHT
Diff: setting.h
- Revision:
- 20:806196fda269
- Parent:
- 19:23b7c1ad8683
- Child:
- 22:966b35691d69
diff -r 23b7c1ad8683 -r 806196fda269 setting.h --- a/setting.h Mon Sep 09 06:29:56 2019 +0000 +++ b/setting.h Mon Sep 09 06:57:31 2019 +0000 @@ -9,11 +9,14 @@ //#define PWM_ARR 0x1194 // loop 20k, pwm 10k #define PWM_ARR 0x2328 // loop 10k, pwm 5k #define TMR3_COUNT 0x4650 // loop 5k +#define TMR5_COUNT 0x2710 // loop 500hz with prescale 18 +#define FREQ_500 500.0 #define FREQ_5k 5000.0 #define FREQ_10k 10000.0 #define FREQ_20k 20000.0 #define FREQ_40k 40000.0 +#define DT_500 0.002 #define DT_5k 0.0002 #define DT_10k 0.0001 #define DT_20k 0.00005