Paperd.Ink Library 0.0.5
Library for interacting with Paperd.Ink devices.
Loading...
Searching...
No Matches
todo_list.h
Go to the documentation of this file.
1#ifndef _PAPERDINK_TODO_LIST_H_
2#define _PAPERDINK_TODO_LIST_H_
3
5
6#define DEBUG Serial
7
8#define TODO_LIST_MAX_TASKS 30
9#define TODO_LIST_MAX_TODO_STR_LENGTH 30
10
12{
13public:
15uint8_t task_count;
16String token;
17
18void display_list_style1(GxEPD2_GFX& display, int16_t x, int16_t y, int16_t rows = TODO_LIST_MAX_TASKS, int16_t columns = 1, uint16_t max_line_width = 400);
19};
20
22{
23public:
24String project_id; // Project ID in case of taiga
25
26int8_t fetch_data(const char *project_name, const char *project_username, const char *project_password);
27};
28
30{
31public:
32
33int8_t fetch_data(const char *token);
34};
35
38
39#endif /* _PAPERDINK_TODO_LIST_H_ */
void display_list_style1(GxEPD2_GFX &display, int16_t x, int16_t y, int16_t rows=TODO_LIST_MAX_TASKS, int16_t columns=1, uint16_t max_line_width=400)
char tasks[TODO_LIST_MAX_TASKS][TODO_LIST_MAX_TODO_STR_LENGTH+1]
Definition todo_list.h:14
int8_t fetch_data(const char *project_name, const char *project_username, const char *project_password)
Definition todo_list.cpp:77
int8_t fetch_data(const char *token)
#define TODO_LIST_MAX_TODO_STR_LENGTH
Definition todo_list.h:9
#define TODO_LIST_MAX_TASKS
Definition todo_list.h:8
PaperdinkUITodoListTodoistClass Paperdink_TodoListTodoist
PaperdinkUITodoListTaigaClass Paperdink_TodoListTaiga