Skip to content

Commit 4fc2e1b

Browse files
committed
Added sleep power test and bumped version number
1 parent 3d83e5b commit 4fc2e1b

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
//
2+
// FastEPD sleep power test
3+
//
4+
// A sketch written to help measure the power used by parallel Eink
5+
// boards utilizing some form of ESP32
6+
// The program goes through various steps of active use and different
7+
// sleep levels to allow measurement of the current in every situation
8+
//
9+
#include <FastEPD.h>
10+
FASTEPD epaper;
11+
12+
void lightSleep(uint64_t time_in_us)
13+
{
14+
esp_sleep_enable_timer_wakeup(time_in_us);
15+
esp_light_sleep_start();
16+
}
17+
void deepSleep(uint64_t time_in_us)
18+
{
19+
esp_sleep_enable_timer_wakeup(time_in_us);
20+
esp_deep_sleep_start();
21+
}
22+
23+
void setup()
24+
{
25+
epaper.initPanel(BB_PANEL_SENSORIA_C5);
26+
epaper.fillScreen(BBEP_WHITE);
27+
epaper.fullUpdate();
28+
epaper.deInit(); // shut down I/O extenders
29+
delay(3000); // 3 seconds of the ESP32 fully running
30+
lightSleep(3000000); // 3 seconds of the light sleep
31+
deepSleep(3000000); // 3 seconds of deep sleep
32+
}
33+
34+
void loop()
35+
{
36+
}
37+

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=FastEPD
2-
version=1.4.6
2+
version=1.5.0
33
author=Larry Bank
44
maintainer=Larry Bank
55
sentence=A frustration-free e-paper library for parallel eink panels.

0 commit comments

Comments
 (0)