From d4eb2e679e3e6628e322f9b52f1241eb12e73513 Mon Sep 17 00:00:00 2001 From: BoomPC Date: Tue, 7 May 2024 23:29:51 +0800 Subject: [PATCH] test --- src/main.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index cf3febc..b71900d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -339,17 +339,17 @@ void loop(void) // lcd.clearDisplay(0xFFFFFFU); // lcd.setFont(&fonts::Roboto_Thin_24); - lcd.setFont(&fonts::Font4); - lcd.setTextDatum(bottom_center); - lcd.drawString("V", 220, 50); - lcd.drawString("A", 220, 108); - lcd.drawString("W", 220, 166); + // lcd.setFont(&fonts::Font4); + // lcd.setTextDatum(bottom_center); + // lcd.drawString("V", 220, 50); + // lcd.drawString("A", 220, 108); + // lcd.drawString("W", 220, 166); - lcd.setFont(&fonts::Font6); - lcd.setTextDatum(bottom_right); - lcd.drawFloat(ina.readBusVoltage(), 4, 200, 58); - lcd.drawFloat(abs(ina.readShuntCurrent()), 4, 200, 116); - lcd.drawFloat(ina.readBusPower(), 4, 200, 174); + // lcd.setFont(&fonts::Font6); + // lcd.setTextDatum(bottom_right); + // lcd.drawFloat(ina.readBusVoltage(), 4, 200, 58); + // lcd.drawFloat(abs(ina.readShuntCurrent()), 4, 200, 116); + // lcd.drawFloat(ina.readBusPower(), 4, 200, 174); // float current = abs(ina.readShuntCurrent()); // drawCurve(current * 10000);