https://github.com/liyanboy74/glcd-st7920-lib
GLCD 64*128 ST7920 Serial library for STM32
https://github.com/liyanboy74/glcd-st7920-lib
glcd library st7920 stm32
Last synced: 12 months ago
JSON representation
GLCD 64*128 ST7920 Serial library for STM32
- Host: GitHub
- URL: https://github.com/liyanboy74/glcd-st7920-lib
- Owner: liyanboy74
- Created: 2020-10-22T17:43:02.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-28T07:57:45.000Z (over 5 years ago)
- Last Synced: 2025-04-13T04:32:26.279Z (about 1 year ago)
- Topics: glcd, library, st7920, stm32
- Language: C
- Homepage:
- Size: 406 KB
- Stars: 7
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# GLCD ST7920 Serial Lib
That is Edited version of [Original version](https://controllerstech.com/glcd-128x64-st7920-interfacing-with-stm32/) 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`:
```c
#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
```