Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lbuque committed Dec 28, 2021
2 parents 8c8fe6b + 1aebee7 commit ae88019
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added examples/E-paper47_20201214.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/demo/demo.ino
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void loop()
{
// When reading the battery voltage, POWER_EN must be turned on
epd_poweron();

delay(10); // Make adc measurement more accurate
uint16_t v = analogRead(BATT_PIN);
float battery_voltage = ((float)v / 4095.0) * 2.0 * 3.3 * (vref / 1000.0);
String voltage = "➸ Voltage :" + String(battery_voltage) + "V";
Expand Down

0 comments on commit ae88019

Please sign in to comment.