File tree Expand file tree Collapse file tree 2 files changed +38
-1
lines changed
examples/Arduino/sleep_power_test Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 11name =FastEPD
2- version =1.4.6
2+ version =1.5.0
33author =Larry Bank
44maintainer =Larry Bank
55sentence =A frustration-free e-paper library for parallel eink panels.
You can’t perform that action at this time.
0 commit comments