idf的spi还有问题

This commit is contained in:
2025-12-31 02:04:09 +08:00
parent 5f53220606
commit fb653cb545
7 changed files with 297 additions and 11 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifndef LCD_H
#define LCD_H
#include <stdio.h>
#include <inttypes.h>
#include "esp_log.h"
#include "spi.h"
#define USE_HORIZONTAL 0 //设置横屏或者竖屏显示 0或1为竖屏 2或3为横屏
#define LCD_WW 240
#define LCD_HH 320
void LCD_Address_Set(uint16_t x1,uint16_t y1,uint16_t x2,uint16_t y2);
void lcd_init();
void LCD_Clear(uint16_t Color);
#endif