Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 932 Bytes

readme.md

File metadata and controls

33 lines (23 loc) · 932 Bytes

GLCD ST7920 Serial Lib

That is Edited version of Original version for stm32.

for Enable Serial mode for GLCD ST7920 Pin15="PSB" must connect to GND!

Other Pins:

GLCD Pin Name (PSB=Hi) Name (PSB=LOW)
4 RS CS
5 R/W SID
6 E SCK

Note:

  • don't need hardware SPI , the library use GPIO to generate serial mode for st7920!
  • All 3 pins must set as output.

Example Define Pins in main.h:

#define GLCD_SID_Pin 		GPIO_PIN_1
#define GLCD_SID_GPIO_Port 	GPIOA

#define GLCD_SCK_Pin 		GPIO_PIN_2
#define GLCD_SCK_GPIO_Port 	GPIOB

#define GLCD_RST_Pin 		GPIO_PIN_12
#define GLCD_RST_GPIO_Port 	GPIOB

#define GLCD_CS_Pin 		GPIO_PIN_8
#define GLCD_CS_GPIO_Port 	GPIOA