-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
espeon.h
27 lines (22 loc) · 773 Bytes
/
espeon.h
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
#ifndef ESPEON_H
#define ESPEON_H
#include <Arduino.h>
extern volatile bool sram_modified;
extern uint8_t btn_directions;
extern uint8_t btn_faces;
typedef uint16_t fbuffer_t;
extern uint16_t palette[];
void espeon_update(void);
void espeon_init(void);
void espeon_faint(const char* msg);
fbuffer_t* espeon_get_framebuffer(void);
void espeon_clear_framebuffer(fbuffer_t col);
void espeon_end_frame(void);
void espeon_clear_screen(uint16_t col);
void espeon_set_palette(const uint32_t* col);
void espeon_render_border(const uint8_t* img, uint32_t size);
void espeon_save_sram(uint8_t* ram, uint32_t size);
void espeon_load_sram(uint8_t* ram, uint32_t size);
const uint8_t* espeon_load_rom(const char* path);
const uint8_t* espeon_load_bootrom(const char* path);
#endif