This commit is contained in:
BoomPC 2024-05-07 23:41:02 +08:00
parent 0e635c93a7
commit 3589b979ce
1 changed files with 10 additions and 10 deletions

View File

@ -339,17 +339,17 @@ void loop(void)
// lcd.clearDisplay(0xFFFFFFU); // lcd.clearDisplay(0xFFFFFFU);
// lcd.setFont(&fonts::Roboto_Thin_24); // lcd.setFont(&fonts::Roboto_Thin_24);
// lcd.setFont(&fonts::Font4); lcd.setFont(&fonts::Font4);
// lcd.setTextDatum(bottom_center); lcd.setTextDatum(bottom_center);
// lcd.drawString("V", 220, 50); lcd.drawString("V", 220, 50);
// lcd.drawString("A", 220, 108); lcd.drawString("A", 220, 108);
// lcd.drawString("W", 220, 166); lcd.drawString("W", 220, 166);
// lcd.setFont(&fonts::Font6); lcd.setFont(&fonts::Font6);
// lcd.setTextDatum(bottom_right); lcd.setTextDatum(bottom_right);
// lcd.drawFloat(ina.readBusVoltage(), 4, 200, 58); lcd.drawFloat(ina.readBusVoltage(), 4, 200, 58);
// lcd.drawFloat(abs(ina.readShuntCurrent()), 4, 200, 116); lcd.drawFloat(abs(ina.readShuntCurrent()), 4, 200, 116);
// lcd.drawFloat(ina.readBusPower(), 4, 200, 174); lcd.drawFloat(ina.readBusPower(), 4, 200, 174);
// float current = abs(ina.readShuntCurrent()); // float current = abs(ina.readShuntCurrent());
// drawCurve(current * 10000); // drawCurve(current * 10000);