Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
The examples are based on STM32F103RBT6 as well as the connection table. If you want to use other MCU, you need to port the project and change the connection according to the actual hardware.
LCD | STM32 |
VCC | 3.3V/5V |
GND | GND |
DIN | PA7 |
CLK | PA5 |
CS | PB6 |
DC | PA8 |
RST | PA9 |
BL | PC7 |
Use Waveshare XNUCLEO-F103RB as examples
The examples use HAL libraries. Download demo codes, unzip, and find the STM32 projects. Open LCD_demo.uvprojx which is located in STM32\STM32F103RBT6\MDK-ARM directory by Keil project
Open main.c file, you can configure the types for actual displays, recompile the project and download it to your board.
LCD_0in96_test() | 0.96inch LCD example |
LCD_1in14_test() | 1.14inch LCD example |
LCD_1in3_test() | 1.3inch LCD example |
LCD_1in54_test() | 1.54inch LCD example |
LCD_1in8_test() | 1.8inch LCD example |
LCD_2in_test() | 2inchLCDexample |