-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglcd.h
32 lines (23 loc) · 800 Bytes
/
glcd.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
#ifndef _GLCD_H /* Guard against multiple inclusion */
#define _GLCD_H
// Comment out and delete the ST7920* files from your project if you don't need it and want to save space.
#define ST7920_SUPPORT
#include <stdbool.h>
#include "KS0108.h"
#ifdef ST7920_SUPPORT
#include "ST7920.h"
#endif
typedef enum {
GLCD_KS0108 = 0,
#ifdef ST7920_SUPPORT
GLCD_ST7920,
#endif
GLCD_NONE
} screen_type_t;
void GLCD_Initialize(screen_type_t); // Initialize the screen. Call this before anything else
void GLCD_ClearScreen(); // Clear the screen
void GLCD_WriteBufToScreen(); // Write the buffer to screen
#ifdef ST7920_SUPPORT
void BufCopy_KS0108_to_ST7920(uint16_t *dst_st7920, unsigned char *src_ks0108);
#endif
#endif /* _GLCD_H */