An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Bad Apple on a 128x64 ST7920 LCD display, using Raspberry Pi.
[![Watch the video](https://img.youtube.com/vi/v_NnFB3Wwd8/default.jpg)](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