test #1

Merged
Boooom merged 1 commits from dev into main 2024-05-07 23:32:27 +08:00
1 changed files with 10 additions and 10 deletions

View File

@ -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);