mirror of https://github.com/arendst/Tasmota.git
Add PWM Freq Limits Config at Compile time
PWM_MAX and PWM_MIN are added with explanation comments in order to let a user, who wants to use a Servo, to config these values. Not added at runtime in order to avoid issues with dimmers.
This commit is contained in:
parent
5bbec2617f
commit
dfce7a280a
|
@ -80,6 +80,10 @@ typedef unsigned long power_t; // Power (Relay) type
|
||||||
//#define PWM_FREQ 1000 // 100..1000 Hz led refresh
|
//#define PWM_FREQ 1000 // 100..1000 Hz led refresh
|
||||||
//#define PWM_FREQ 910 // 100..1000 Hz led refresh (iTead value)
|
//#define PWM_FREQ 910 // 100..1000 Hz led refresh (iTead value)
|
||||||
#define PWM_FREQ 880 // 100..1000 Hz led refresh (BN-SZ01 value)
|
#define PWM_FREQ 880 // 100..1000 Hz led refresh (BN-SZ01 value)
|
||||||
|
#define PWM_MAX 4000 // [PWM_MAX] Maximum frequency - Default: 4000
|
||||||
|
#define 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 Controlling Servos use 50 and also set PWM_FREQ as 50 (DO NOT USE THESE VALUES FOR DIMMERS)
|
||||||
|
|
||||||
#define DEFAULT_POWER_DELTA 80 // Power change percentage
|
#define DEFAULT_POWER_DELTA 80 // Power change percentage
|
||||||
#define MAX_POWER_HOLD 10 // Time in SECONDS to allow max agreed power
|
#define MAX_POWER_HOLD 10 // Time in SECONDS to allow max agreed power
|
||||||
|
|
Loading…
Reference in New Issue