2019-06-11 17:48:09 +00:00
|
|
|
#pragma once
|
2019-05-28 03:46:25 +00:00
|
|
|
|
2019-05-29 22:49:54 +00:00
|
|
|
#include <Arduino.h>
|
|
|
|
|
2019-05-28 03:46:25 +00:00
|
|
|
typedef struct {
|
2019-06-07 04:24:16 +00:00
|
|
|
uint8_t *colors;
|
|
|
|
uint8_t *data;
|
|
|
|
uint16_t *offsets;
|
|
|
|
uint16_t *delays;
|
|
|
|
boolean individual_delays;
|
|
|
|
int color_count;
|
|
|
|
int frame_count;
|
|
|
|
int w;
|
|
|
|
int h;
|
2019-05-28 03:46:25 +00:00
|
|
|
} AnimationData;
|
|
|
|
|
2019-05-29 22:49:54 +00:00
|
|
|
typedef struct {
|
2019-06-11 17:48:09 +00:00
|
|
|
uint8_t width;
|
|
|
|
uint8_t height;
|
|
|
|
const uint8_t *data;
|
|
|
|
bool (*isCharAllowed)(const char);
|
|
|
|
uint16_t (*getCharPosition)(const char);
|
|
|
|
} Font;
|
2019-05-29 22:49:54 +00:00
|
|
|
|
|
|
|
typedef struct Vector {
|
2019-06-07 04:24:16 +00:00
|
|
|
double x1;
|
|
|
|
double x2;
|
2019-05-29 22:49:54 +00:00
|
|
|
} Vector;
|
|
|
|
|
|
|
|
typedef struct Matrix {
|
2019-06-07 04:24:16 +00:00
|
|
|
double a11;
|
|
|
|
double a12;
|
|
|
|
double a21;
|
|
|
|
double a22;
|
2019-05-29 22:49:54 +00:00
|
|
|
} Matrix;
|
|
|
|
|
2019-05-31 03:45:07 +00:00
|
|
|
typedef struct {
|
|
|
|
uint16_t x;
|
|
|
|
uint16_t y;
|
|
|
|
} Coords;
|
|
|
|
|
2019-05-30 11:08:24 +00:00
|
|
|
extern uint8_t baseHue;
|