Paperd.Ink Library
0.0.5
Library for interacting with Paperd.Ink devices.
Loading...
Searching...
No Matches
paperdink_common.h
Go to the documentation of this file.
1
#ifndef _PAPERDINK_COMMON_H_
2
#define _PAPERDINK_COMMON_H_
3
4
#include <ArduinoJson.h>
5
#include <JsonStreamingParser.h>
6
#include <JsonListener.h>
7
#include <Print.h>
8
#include <Stream.h>
9
#include <FS.h>
10
#include <SD.h>
11
#include <SPI.h>
12
13
#include "
drivers/GxEPD2_GFX.h
"
14
#include "
fonts.h
"
15
#include "
icons.h
"
16
17
#include "
ui/ui_base.h
"
18
19
#define DEBUG Serial
20
21
/* Convert the Json data into an Arduino Stream */
22
class
ArudinoStreamParser
:
public
Stream,
public
JsonStreamingParser {
23
/* https://github.com/mrfaptastic/json-streaming-parser2 */
24
public
:
25
size_t
write
(
const
uint8_t *buffer,
size_t
size)
override
;
26
size_t
write
(uint8_t data)
override
;
27
28
int
available
()
override
;
29
int
read
()
override
;
30
int
peek
()
override
;
31
void
flush
()
override
;
32
};
33
34
#endif
/* _PAPERDINK_COMMON_H_ */
GxEPD2_GFX.h
ArudinoStreamParser
Definition
paperdink_common.h:22
ArudinoStreamParser::read
int read() override
Definition
common.cpp:30
ArudinoStreamParser::flush
void flush() override
Definition
common.cpp:40
ArudinoStreamParser::write
size_t write(const uint8_t *buffer, size_t size) override
Definition
common.cpp:3
ArudinoStreamParser::peek
int peek() override
Definition
common.cpp:35
ArudinoStreamParser::available
int available() override
Definition
common.cpp:25
fonts.h
icons.h
ui_base.h
src
paperdink_common.h
Generated by
1.12.0