Compare commits
2 Commits
fcc2d0825d
...
7ec1ed9111
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7ec1ed9111 | ||
|
|
a1ab26c73b |
4
.gitignore
vendored
4
.gitignore
vendored
@@ -76,3 +76,7 @@ Desktop.ini
|
|||||||
*.workspace # General workspace files, can be from various tools
|
*.workspace # General workspace files, can be from various tools
|
||||||
*.suo # Visual Studio Solution User Options
|
*.suo # Visual Studio Solution User Options
|
||||||
*.sln.docstates # Visual Studio
|
*.sln.docstates # Visual Studio
|
||||||
|
|
||||||
|
# VS Code workspace settings
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/launch.json
|
||||||
|
|||||||
10
.vscode/launch.json
vendored
Normal file
10
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "gdbtarget",
|
||||||
|
"request": "attach",
|
||||||
|
"name": "Eclipse CDT GDB Adapter"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -9,8 +9,8 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* LCD size */
|
/* LCD size */
|
||||||
#define EXAMPLE_LCD_H_RES (160)
|
#define EXAMPLE_LCD_H_RES (240)
|
||||||
#define EXAMPLE_LCD_V_RES (80)
|
#define EXAMPLE_LCD_V_RES (240)
|
||||||
|
|
||||||
/* LCD SPI总线配置 */
|
/* LCD SPI总线配置 */
|
||||||
#define EXAMPLE_LCD_SPI_NUM (SPI2_HOST) // 使用SPI2主机接口进行通信
|
#define EXAMPLE_LCD_SPI_NUM (SPI2_HOST) // 使用SPI2主机接口进行通信
|
||||||
@@ -43,10 +43,10 @@ extern "C" {
|
|||||||
/* LCD pins */
|
/* LCD pins */
|
||||||
#define EXAMPLE_LCD_GPIO_SCLK (GPIO_NUM_2)
|
#define EXAMPLE_LCD_GPIO_SCLK (GPIO_NUM_2)
|
||||||
#define EXAMPLE_LCD_GPIO_MOSI (GPIO_NUM_3)
|
#define EXAMPLE_LCD_GPIO_MOSI (GPIO_NUM_3)
|
||||||
#define EXAMPLE_LCD_GPIO_RST (GPIO_NUM_9)
|
#define EXAMPLE_LCD_GPIO_RST (GPIO_NUM_6)
|
||||||
#define EXAMPLE_LCD_GPIO_DC (GPIO_NUM_8)
|
#define EXAMPLE_LCD_GPIO_DC (GPIO_NUM_8)
|
||||||
#define EXAMPLE_LCD_GPIO_CS (GPIO_NUM_7)
|
#define EXAMPLE_LCD_GPIO_CS (GPIO_NUM_7)
|
||||||
#define EXAMPLE_LCD_GPIO_BL (GPIO_NUM_6)
|
#define EXAMPLE_LCD_GPIO_BL (GPIO_NUM_NC)
|
||||||
|
|
||||||
esp_err_t start_lvgl_demo(void);
|
esp_err_t start_lvgl_demo(void);
|
||||||
esp_err_t lvgl_st7735s_set_center_text(const char *text);
|
esp_err_t lvgl_st7735s_set_center_text(const char *text);
|
||||||
|
|||||||
Reference in New Issue
Block a user