-
Notifications
You must be signed in to change notification settings - Fork 6
/
gc9a01.h
32 lines (27 loc) · 1.14 KB
/
gc9a01.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
//--------------------------------------------------------------------------------------------------------
// Nadyrshin Ruslan - [YouTube-channel: https://www.youtube.com/channel/UChButpZaL5kUUl_zTyIDFkQ]
// Liyanboy74
//--------------------------------------------------------------------------------------------------------
#ifndef _GC9A01_H
#define _GC9A01_H
#define GC9A01_Width CONFIG_GC9A01_Width
#define GC9A01_Height CONFIG_GC9A01_Height
uint16_t GC9A01_GetWidth();
uint16_t GC9A01_GetHeight();
void GC9A01_Init();
#if (CONFIG_GC9A01_BUFFER_MODE_PSRAM)
/**
* Frees the PSRAM allocated buffer
*/
void GC9A01_Free(void);
#endif
void GC9A01_SleepMode(uint8_t Mode);
void GC9A01_DisplayPower(uint8_t On);
void GC9A01_DrawPixel(int16_t x, int16_t y, uint16_t color);
void GC9A01_FillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color);
void GC9A01_Update();
void GC9A01_SetBL(uint8_t Value);
uint16_t GC9A01_GetPixel(int16_t x, int16_t y);
void GC9A01_Screen_Shot(uint16_t x,uint16_t y,uint16_t width ,uint16_t height,uint16_t * Buffer);
void GC9A01_Screen_Load(uint16_t x,uint16_t y,uint16_t width ,uint16_t height,uint16_t * Buffer);
#endif