-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patholed.h
40 lines (30 loc) · 935 Bytes
/
oled.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
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* oled.h
*
* Created on: Jul 6, 2015
* Author: George
*/
#ifndef OLED_H_
#define OLED_H_
#include <qc12.h>
#include <grlib.h>
#include <img.h>
#define OLED_ANIM_START 1
#define OLED_ANIM_DONE 0
#define OLED_OVERHEAD_OFF 0
#define OLED_OVERHEAD_TXT 1
#define OLED_OVERHEAD_IMG 2
extern uint8_t oled_overhead_type;
extern uint8_t oled_anim_state;
tContext g_sContext;
void init_oled();
void oled_draw_pane_and_flush(uint8_t);
void oled_anim_next_frame();
void oled_anim_disp_frame(const qc12_anim_t *animation_data, uint8_t frame_no);
void oled_play_animation(const qc12_anim_t*, uint8_t);
void oled_set_overhead_image(const tImage *image, uint8_t len);
void oled_set_overhead_text(char *text, uint8_t len);
void oled_set_overhead_off();
void oled_print(uint8_t x, uint8_t y, const char str[], uint8_t opaque, uint8_t centered);
void oled_timestep();
#endif /* OLED_H_ */