mirror of
https://github.com/wagiminator/ATmega-Soldering-Station.git
synced 2025-08-07 13:00:30 +03:00
调整一些细节
This commit is contained in:
@@ -1528,7 +1528,7 @@ void RotarySet() {
|
|||||||
arduboy.setTextSize(1);
|
arduboy.setTextSize(1);
|
||||||
Setpoint = getRotary();
|
Setpoint = getRotary();
|
||||||
ShowTemp = Setpoint;
|
ShowTemp = Setpoint;
|
||||||
rad = ((Setpoint - 60) / 360.0) * (2 * PI) - PI / 2;
|
|
||||||
|
|
||||||
arduboy.clear();
|
arduboy.clear();
|
||||||
//仪表盘
|
//仪表盘
|
||||||
@@ -1541,7 +1541,13 @@ void RotarySet() {
|
|||||||
arduboy.setCursor(55, 1);
|
arduboy.setCursor(55, 1);
|
||||||
arduboy.setTextSize(2);
|
arduboy.setTextSize(2);
|
||||||
arduboy.print(F("MODE "));
|
arduboy.print(F("MODE "));
|
||||||
if (RotaryD) arduboy.print(F("+")); else arduboy.print(F("-"));
|
if (RotaryD) {
|
||||||
|
arduboy.print(F("-"));
|
||||||
|
rad = ((Setpoint - 60) / 360.0) * (2 * PI) - PI / 2;
|
||||||
|
} else {
|
||||||
|
arduboy.print(F("+"));
|
||||||
|
rad = ((-Setpoint - 60) / 360.0) * (2 * PI) + PI * 1 / 6;
|
||||||
|
}
|
||||||
//右侧数字显示
|
//右侧数字显示
|
||||||
DrawNumRect(ShowTemp);
|
DrawNumRect(ShowTemp);
|
||||||
//下端的状态条
|
//下端的状态条
|
||||||
|
Reference in New Issue
Block a user