分离
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
#ifndef LCD_H
|
||||
#define LCD_H
|
||||
|
||||
#include <arduino.h>
|
||||
|
||||
//硬件spi貌似接错线了
|
||||
|
||||
#define LCD_SDA 3
|
||||
#define LCD_SCL 2
|
||||
#define LCD_CS 7
|
||||
#define LCD_DS 6
|
||||
#define LCD_LED 10
|
||||
|
||||
#define VSPI_MISO 10
|
||||
#define VSPI_MOSI 3
|
||||
#define VSPI_SCLK 2
|
||||
#define VSPI_SS 7
|
||||
|
||||
#define USE_HORIZONTAL 0 //设置横屏或者竖屏显示 0或1为竖屏 2或3为横屏
|
||||
#define LCD_W 240
|
||||
#define LCD_H 240
|
||||
#define OLED_CMD 0 //写命令
|
||||
#define OLED_DATA 1 //写数据
|
||||
|
||||
#define VSPI FSPI
|
||||
|
||||
|
||||
static const long spiClk = 80000000; // 80 MHz
|
||||
|
||||
|
||||
void lcd_init();
|
||||
|
||||
void LCD_Clear(uint16_t Color);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user