优化H桥PWM并增加平滑调光

This commit is contained in:
2026-07-26 20:03:55 +08:00
parent d27b42a1f9
commit 56f2c18da4
174 changed files with 17943 additions and 17018 deletions
@@ -145,14 +145,7 @@ void scan_uart(uint8_t *arr)
case 6:
if(POWEROFF==deviceStatus)break;
if(user_rx_buf[1]<=5){
temperature(250);
}
else if(user_rx_buf[1]>=250){
temperature(50);
}else {
temperature(227-(57 +(((user_rx_buf[1] - 5)* 110) / 245)));
}
temperature(user_rx_buf[1]);
Mode=mode0;
choose_mode_bh=0;
choose_mode_falsg=10;//圆环模式