https://github.com/win10device/bad-apple-st7920
Bad Apple on a 128x64 ST7920 LCD display, using Raspberry Pi
https://github.com/win10device/bad-apple-st7920
bad-apple c raspberrypi rpi4 rpi4b st7920
Last synced: about 1 month ago
JSON representation
Bad Apple on a 128x64 ST7920 LCD display, using Raspberry Pi
- Host: GitHub
- URL: https://github.com/win10device/bad-apple-st7920
- Owner: win10Device
- Created: 2023-07-10T23:14:57.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-17T00:54:01.000Z (about 1 year ago)
- Last Synced: 2025-02-13T02:44:14.461Z (3 months ago)
- Topics: bad-apple, c, raspberrypi, rpi4, rpi4b, st7920
- Language: C
- Homepage:
- Size: 1.69 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bad Apple on a 128x64 ST7920 LCD display, using Raspberry Pi.
[](https://youtu.be/v_NnFB3Wwd8)
This project could be much more efficient, but this is a one off project, and I've gotten rusty with C
You'll need libu8g2arm already compiled on your Raspberry Pi,
You'll also need the g++ package, which can be installed with $ `sudo apt install g++`
To compile the project, be in the same directory as the bad apple files, $ `cc main.c -o program -l:libu8g2arm.a`,
Then to run $ `./program`
WARNING!
Depending on which 128x64 LCD display you have, you'll have to shift 3.3V logic to 5V logic (Something like this), or it WILL destory your Raspberry Pi.
Connections
`GND - GND` LCD Power -
`VCC - +5V` LCD Power +
`E - SCLK (GPIO 11)` Serial Clock (See Warning)
`R/W - MOSI (GPIO 10)` Master Out Slave In (See Warning)
`RS(unconnected)` Read-Select (see note 1)
`PSB - GND` Enables SPI mode on display
`BLA - +5V` Blacklight +
`BLK - GND` Blacklight -
Note 1: `RS` is Chip Select in SPI mode on ST7920, but `CE0`/`CE1` are inverted to the spec of ST7920, So leave this disconnected or you'll have no display output