From 3589b979ce5bb5154f45b7122fd030bbe9a5e0d7 Mon Sep 17 00:00:00 2001 From: BoomPC Date: Tue, 7 May 2024 23:41:02 +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 b71900d..cf3febc 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);