Browse Source

Using NMI timer for dimmers and reducing freq to 500Hz

fastled
Xose Pérez 7 years ago
parent
commit
0f11e5ddd6
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      code/espurna/config/general.h
  2. +1
    -1
      code/espurna/libs/pwm.c

+ 1
- 1
code/espurna/config/general.h View File

@ -521,7 +521,7 @@ PROGMEM const char* const custom_reset_string[] = {
#endif #endif
#if LIGHT_PROVIDER == LIGHT_PROVIDER_DIMMER #if LIGHT_PROVIDER == LIGHT_PROVIDER_DIMMER
#define LIGHT_MAX_PWM 5000 // 5000 * 200ns => 1 kHz
#define LIGHT_MAX_PWM 10000 // 5000 * 200ns => 1 kHz
#endif #endif
#endif // LIGHT_MAX_PWM #endif // LIGHT_MAX_PWM


+ 1
- 1
code/espurna/libs/pwm.c View File

@ -25,7 +25,7 @@
#define PWM_MAX_CHANNELS 8 #define PWM_MAX_CHANNELS 8
#endif #endif
#define PWM_DEBUG 0 #define PWM_DEBUG 0
#define PWM_USE_NMI 0
#define PWM_USE_NMI 1
/* no user servicable parts beyond this point */ /* no user servicable parts beyond this point */


Loading…
Cancel
Save