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 */
22class 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_ */
int read() override
Definition common.cpp:30
void flush() override
Definition common.cpp:40
size_t write(const uint8_t *buffer, size_t size) override
Definition common.cpp:3
int peek() override
Definition common.cpp:35
int available() override
Definition common.cpp:25