summaryrefslogtreecommitdiff
path: root/src/paint.h
blob: 2a82ba0bf40e387edf0d1be05e6fbb559e7d15c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __PAINT_H
#define __PAINT_H

#include "ssd1306_display_driver.h"
#include "br24t_eeprom_driver.h"

typedef const struct font {
  EEPROM_ADDR *font; 
  uint8_t width;
  uint8_t height;
  uint16_t first_char;
} font_t;

void screen_clear();
void draw_image(EEPROM_ADDR image);
void draw_hline(int pos_y);
void draw_text(char *text, int x, int y, font_t font);


#endif