Paperd.Ink Library 0.0.5
Library for interacting with Paperd.Ink devices.
Loading...
Searching...
No Matches
base.h
Go to the documentation of this file.
1#ifndef _PDINK_BASE_H_
2#define _PDINK_BASE_H_
3
4#define ENABLE_GxEPD2_GFX 1
5#define ENABLE_GxEPD2_4G_GFX 1
6
9#include "pin_assignment.h"
10#include "../paperdink_common.h"
11
13{
14 public:
15 uint8_t has_color = false;
17
18 int8_t begin();
19 virtual int8_t enable_display();
20 virtual int8_t disable_display();
21 int8_t enable_sd();
22 int8_t disable_sd();
23 int8_t disable_everything();
24
25 int8_t deep_sleep_timer_wakeup(uint64_t sleep_time_us);
26 int8_t deep_sleep_button_wakeup(uint8_t gpio_num);
27 int8_t deep_sleep_timer_button_wakeup(uint64_t sleep_time_us, uint8_t gpio_num);
28
29 int8_t connect_wifi(const char *ssid, const char *password, uint8_t attempts);
30 int8_t connect_wifi(const char *ssid, const char *password);
31};
32
33#endif /* _PDINK_BASE_H_ */
#define GxEPD_BLACK
Definition GxEPD2.h:19
int8_t disable_everything()
Definition base.cpp:62
int8_t deep_sleep_timer_wakeup(uint64_t sleep_time_us)
Definition base.cpp:72
virtual int8_t enable_display()
Definition base.cpp:20
virtual int8_t disable_display()
Definition base.cpp:32
int8_t connect_wifi(const char *ssid, const char *password, uint8_t attempts)
Definition base.cpp:113
int8_t deep_sleep_button_wakeup(uint8_t gpio_num)
Definition base.cpp:86
int8_t deep_sleep_timer_button_wakeup(uint64_t sleep_time_us, uint8_t gpio_num)
Definition base.cpp:99