mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2026-07-15 06:25:39 +00:00
rel_1.6.0 init
This commit is contained in:
commit
27b3e2883d
19359 changed files with 8093121 additions and 0 deletions
34
Living_SDK/board/starterkit/st7789.h
Normal file
34
Living_SDK/board/starterkit/st7789.h
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#ifndef __ST7789_H
|
||||
#define __ST7789_H
|
||||
|
||||
#define WIDTH 240
|
||||
#define HEIGHT 240
|
||||
#define BPP 16
|
||||
|
||||
/* Init script function */
|
||||
struct st7789_function {
|
||||
uint8_t cmd;
|
||||
uint16_t data;
|
||||
};
|
||||
|
||||
/* Init script commands */
|
||||
enum st7789_cmd {
|
||||
ST7789_START,
|
||||
ST7789_END,
|
||||
ST7789_CMD,
|
||||
ST7789_DATA,
|
||||
ST7789_DELAY
|
||||
};
|
||||
|
||||
/* ST7789 Commands */
|
||||
#define ST7789_CASET 0x2A
|
||||
#define ST7789_RASET 0x2B
|
||||
#define ST7789_RAMWR 0x2C
|
||||
#define ST7789_RAMRD 0x2E
|
||||
|
||||
int st7789_init();
|
||||
void LcdWriteReg(uint8_t Data);
|
||||
void LcdWriteData(uint8_t Data);
|
||||
void LcdWriteDataMultiple(uint8_t * pData, int NumItems);
|
||||
|
||||
#endif /* __ST7789_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue