Merge pull request 'test' (#1) from dev into main

Reviewed-on: #1
This commit is contained in:
Boooom 2024-05-07 23:32:27 +08:00
commit 0e635c93a7
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);