Skip to content

Latest commit

 

History

History
54 lines (32 loc) · 723 Bytes

File metadata and controls

54 lines (32 loc) · 723 Bytes

ST7789v HAL库驱动

驱动ST7789v系列屏幕

配置

hal

硬件

1730529992766

cubemx配置:(可选)

1730530064133

除此之外,还要再开启两个管脚为推挽输出模式用于RST和DC

快速使用

头文件需要更改

#define ST7789_SPI_PORT hspi1
// Pin
#define ST7789_RST_PORT GPIOE
#define ST7789_RST_PIN  GPIO_PIN_7
#define ST7789_DC_PORT  GPIOE
#define ST7789_DC_PIN   GPIO_PIN_8

接线

与CuBeMX一致,

初始化

ST7789_Init()

使用

通过调用函数使用

汉字取模如图

1730530414911

注意与引用