aboutsummaryrefslogtreecommitdiff
path: root/drawing.h
blob: 94b9be212f7d9ecba20c01559f9bacf41873a48e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Ensure only one definition */
#ifndef drawing
#define drawing

/* Display settings */
#define BUFF_HEIGHT   16
#define NUM_DISPLAY   2

/* Pin difinitions */
#define CLK           5
#define CS            12
#define DATA_IN       3

/* Layers */
uint8_t buttonLayer[16];
uint8_t topLayer[16];

/* Drawing to buffer */
void drawSprite(uint8_t layer[], uint8_t x, uint8_t y, struct Sprite* sprite);
void clearBuffer(uint8_t layer[] );

/* Screen interface commands */
void render(int display, unsigned int where);
void renderToSerial();
void initDisplays(int display);

#endif