Minimum PWM Frequency lowered to 2Hz on ESP32 (#13123) (#13135)

* Minimum PWM Frequency lowered to 2Hz on ESP32 (#13123)

* Forgot main file
This commit is contained in:
s-hadinger 2021-09-15 11:10:48 +02:00 committed by GitHub
parent 679494370a
commit f9e1ab1c90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file.
### Changed
- M5 Stack Core2 uses UNIVERSAL_DISPLAY with enabled LVGL as default now
- ``DisplayDimmer`` has now range 0..100 instead of 0..15
- Minimum PWM Frequency lowered to 2Hz on ESP32 (#13123)
### Fixed
- OpenTherm invalid JSON (#13028)

View File

@ -137,10 +137,11 @@ const uint32_t PWM_RANGE = 1023; // 255..1023 needs to be devisible b
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: 50000
const uint16_t PWM_MIN = 2; // [PWM_MIN] Minimum frequency for ESP32 - Default: 2
#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
#endif
// 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)