提升亮度调节精度至百分比
This commit is contained in:
@@ -376,8 +376,15 @@ void _433_fun(){
|
||||
case Brightness_L:
|
||||
if(POWEROFF==deviceStatus)break;
|
||||
if(Mode==mode0){
|
||||
Brightness--;
|
||||
if(Brightness<=2){Brightness=2;}
|
||||
if(Brightness <=
|
||||
(BRIGHTNESS_MIN_PERCENT + BRIGHTNESS_RF_STEP_PERCENT))
|
||||
{
|
||||
Brightness = BRIGHTNESS_MIN_PERCENT;
|
||||
}
|
||||
else
|
||||
{
|
||||
Brightness -= BRIGHTNESS_RF_STEP_PERCENT;
|
||||
}
|
||||
}else {
|
||||
if(Speed<10)Speed++;
|
||||
}
|
||||
@@ -385,8 +392,15 @@ void _433_fun(){
|
||||
case Brightness_H:
|
||||
if(POWEROFF==deviceStatus)break;
|
||||
if(Mode==mode0){
|
||||
Brightness++;
|
||||
if(Brightness>=10){Brightness=10;}
|
||||
if(Brightness >=
|
||||
(BRIGHTNESS_MAX_PERCENT - BRIGHTNESS_RF_STEP_PERCENT))
|
||||
{
|
||||
Brightness = BRIGHTNESS_MAX_PERCENT;
|
||||
}
|
||||
else
|
||||
{
|
||||
Brightness += BRIGHTNESS_RF_STEP_PERCENT;
|
||||
}
|
||||
}else{
|
||||
if(Speed>1)Speed--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user