mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 14:57:16 +00:00
Merge pull request #10885 from zeroflow/development
Enable higher PWM frequencies for ESP32 (for 4-Pin PWM Fans)
This commit is contained in:
commit
5663ce7788
@ -126,7 +126,11 @@ const uint32_t PWM_RANGE = 1023; // 255..1023 needs to be devisible b
|
||||
//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 = 977; // 100..4000 Hz led refresh
|
||||
#ifdef ESP32
|
||||
const uint16_t PWM_MAX = 50000; // [PWM_MAX] Maximum frequency for ESP32 - Default: 4000
|
||||
#else
|
||||
const uint16_t PWM_MAX = 4000; // [PWM_MAX] Maximum frequency - Default: 4000
|
||||
#endif
|
||||
const uint16_t PWM_MIN = 40; // [PWM_MIN] Minimum frequency - Default: 40
|
||||
// For Dimmers use double of your mains AC frequecy (100 for 50Hz and 120 for 60Hz)
|
||||
// For Controlling Servos use 50 and also set PWM_FREQ as 50 (DO NOT USE THESE VALUES FOR DIMMERS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user