From 0cf973e4c354b8bb4d06b451b77384b56bcf2d05 Mon Sep 17 00:00:00 2001 From: createskyblue Date: Wed, 30 Sep 2020 01:52:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=80=E4=BA=9B=E7=BB=86?= =?UTF-8?q?=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Program/1.8/1.8t1/1.8t1.ino | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/software/UI_upgrade_by_createskyblue/Program/1.8/1.8t1/1.8t1.ino b/software/UI_upgrade_by_createskyblue/Program/1.8/1.8t1/1.8t1.ino index c057390..26d2e18 100644 --- a/software/UI_upgrade_by_createskyblue/Program/1.8/1.8t1/1.8t1.ino +++ b/software/UI_upgrade_by_createskyblue/Program/1.8/1.8t1/1.8t1.ino @@ -1528,7 +1528,7 @@ void RotarySet() { arduboy.setTextSize(1); Setpoint = getRotary(); ShowTemp = Setpoint; - rad = ((Setpoint - 60) / 360.0) * (2 * PI) - PI / 2; + arduboy.clear(); //仪表盘 @@ -1541,7 +1541,13 @@ void RotarySet() { arduboy.setCursor(55, 1); arduboy.setTextSize(2); 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); //下端的状态条