Merge pull request #8255 from s-hadinger/pwm_freq_223

Change default PWM Frequency to 223 Hz instead of 880 Hz
This commit is contained in:
Theo Arends 2020-04-22 16:03:53 +02:00 committed by GitHub
commit d013fbbab8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@
- Add command ``SetOption73 1`` for button decoupling and send multi-press and hold MQTT messages by Federico Leoni (#8235) - Add command ``SetOption73 1`` for button decoupling and send multi-press and hold MQTT messages by Federico Leoni (#8235)
- Add command ``SO`` as shortcut for command ``SetOption`` - Add command ``SO`` as shortcut for command ``SetOption``
- Change PWM implementation to Arduino #7231 - Change PWM implementation to Arduino #7231
- Change default PWM Frequency to 223 Hz instead of 880 Hz for less interrupt pressure
### 8.2.0.3 20200329 ### 8.2.0.3 20200329

View File

@ -110,7 +110,7 @@ const uint16_t WS2812_MAX_LEDS = 512; // Max number of LEDs
const uint32_t PWM_RANGE = 1023; // 255..1023 needs to be devisible by 256 const uint32_t PWM_RANGE = 1023; // 255..1023 needs to be devisible by 256
//const uint16_t PWM_FREQ = 1000; // 100..1000 Hz led refresh //const uint16_t PWM_FREQ = 1000; // 100..1000 Hz led refresh
//const uint16_t PWM_FREQ = 910; // 100..1000 Hz led refresh (iTead value) //const uint16_t PWM_FREQ = 910; // 100..1000 Hz led refresh (iTead value)
const uint16_t PWM_FREQ = 880; // 100..1000 Hz led refresh (BN-SZ01 value) const uint16_t PWM_FREQ = 223; // 100..4000 Hz led refresh
const uint16_t PWM_MAX = 4000; // [PWM_MAX] Maximum frequency - Default: 4000 const uint16_t PWM_MAX = 4000; // [PWM_MAX] Maximum frequency - Default: 4000
const uint16_t PWM_MIN = 100; // [PWM_MIN] Minimum frequency - Default: 100 const uint16_t PWM_MIN = 100; // [PWM_MIN] Minimum frequency - Default: 100
// For Dimmers use double of your mains AC frequecy (100 for 50Hz and 120 for 60Hz) // For Dimmers use double of your mains AC frequecy (100 for 50Hz and 120 for 60Hz)