-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglcd_e.h
More file actions
49 lines (42 loc) · 1.11 KB
/
glcd_e.h
File metadata and controls
49 lines (42 loc) · 1.11 KB
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
41
42
43
44
45
46
47
48
49
/**
* GLCD_E
* Monochrome Graphics LCD Effect
* by: ioelectro.ir
* date: 1403/09/17
*
* Usage:
* after init():
* 1: use glcd_e_mem() for memorise the old screen.
* 2: paint new screen on buffer, widout update screen.
* 3: use glcd_e_update(0 or 1) for print buffer on LCD and update by effect.
*
* Warning:
* - The memory modules not optimized!
* the library use huge buffer size (2x1024 byte) for buffering and not recommended for low space or slow MCUs.
* - Default screen size is 64x128 pixel.
* - The LCD driver must use full buffer mode.
* the lib need lcd-buffer and update() function by init().
* - Hardware HI-Speed SPI recommended for LCD driver.
* - The library written for STM32
*
*/
#ifndef _glcd_e_h_
#define _glcd_e_h_
#include <stdint.h>
#include "main.h"
#define GLCD_E_DELAY_MS 20
#define GLCD_E_BUF_SIZE 1024
typedef struct {
uint8_t *buf;
void (*update)(void);
} glcd_e_config_s;
#ifdef __cplusplus
extern "C" {
#endif
void glcd_e_init(uint8_t *buf,void (*update)(void));
void glcd_e_mem();
void glcd_e_update(uint8_t dir);
#ifdef __cplusplus
}
#endif
#endif