2019-11-10 19:50:40 +01:00
|
|
|
#include <Arduino.h>
|
|
|
|
|
|
|
|
#define MAX_WIDTH 32
|
|
|
|
#define MAX_HEIGHT 40
|
|
|
|
|
2019-12-06 23:58:05 +01:00
|
|
|
struct _image_t {
|
2019-11-10 19:50:40 +01:00
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
byte data[MAX_WIDTH * MAX_HEIGHT];
|
|
|
|
};
|
|
|
|
|
2019-12-06 23:58:05 +01:00
|
|
|
typedef struct _image_t image_t;
|
|
|
|
|
2019-11-10 19:50:40 +01:00
|
|
|
byte get_pixel(image_t* p, int x, int y);
|
|
|
|
|
|
|
|
void set_pixel(image_t* p, int x, int y, byte value);
|
|
|
|
|
|
|
|
void clear_pixels(image_t* p);
|
2019-12-06 23:58:05 +01:00
|
|
|
|
|
|
|
void set_size(image_t* p, int width, int height);
|