38 lines
903 B
C++
38 lines
903 B
C++
#ifndef _DOW_H
|
|
#define _DOW_H
|
|
|
|
#include <WiFi.h>
|
|
#include <HTTPClient.h>
|
|
#include <WiFiClient.h>
|
|
#include <ArduinoJson.h>
|
|
#include <vector>
|
|
#include <GxEPD2_BW.h>
|
|
#include "dow_fonts.h"
|
|
|
|
#define ITEM_TYPE_TEXT 0
|
|
#define ITEM_TYPE_LINE 1
|
|
#define ITEM_TYPE_CIRCLE 2
|
|
#define ITEM_TYPE_CIRCLE_FILL 3
|
|
#define ITEM_TYPE_RECT 4
|
|
#define ITEM_TYPE_RECT_FILL 5
|
|
|
|
#define ITEM_ALIGN_START 0
|
|
#define ITEM_ALIGN_CENTER 1
|
|
#define ITEM_ALIGN_END 2
|
|
|
|
typedef struct {
|
|
int x;
|
|
int y;
|
|
int x2;
|
|
int y2;
|
|
float radius;
|
|
uint8_t type;
|
|
uint8_t font;
|
|
uint8_t verticalAlign;
|
|
uint8_t horizontalAlign;
|
|
String contents;
|
|
} dow_item_t;
|
|
|
|
void dow_render(GxEPD2_BW<GxEPD2_583_GDEQ0583T31, GxEPD2_583_GDEQ0583T31::HEIGHT> &display, std::vector<dow_item_t> &data);
|
|
#endif // _DOW_H
|