修复亮度不能到最大的问题,解决app删除不能配网的问题
This commit is contained in:
@@ -66,7 +66,7 @@ typedef struct __attribute__((packed, aligned(1))) {
|
||||
// 物模型同步需要 持久化维持
|
||||
uint8_t on; // 开关状态
|
||||
lightMode_e elightMode;
|
||||
uint16_t brightness_local; // 当前亮度 (0-1000)
|
||||
uint16_t brightness_local; // 当前亮度 (0-10000)
|
||||
uint16_t fade_time; // 渐变时长(s)
|
||||
uint16_t cct_local; // 当前色温 (2700-6500)
|
||||
uint8_t colourMode; // 色温模式 (0:单色温, 1:双色温)
|
||||
@@ -131,7 +131,8 @@ typedef struct __attribute__((packed, aligned(1))) {
|
||||
|
||||
#define FADE_INTERVAL_MIN (10*1000) //us
|
||||
#define NORMAL_FADE_TIME 3 //s
|
||||
#define PWM_DUTY_RATIO_MAX 20000
|
||||
#define PWM_DUTY_RATIO_MAX 10000
|
||||
#define BRINGHTNING2PWMDUTY(x) ((x) * 1)
|
||||
|
||||
//呼吸灯定义
|
||||
#define BREARTH_PERIOD (3*1000*1000) //呼吸灯周期(Us)
|
||||
|
||||
Reference in New Issue
Block a user