We're Doomed - A Bitcoin Fear and Greed index OLED visualiser
Doom is a first-person-shooter from the 1990s. The health status monitor was one of the many brilliant things about it.
This code visualises the Fear and Greed Bitcoin index using the Doom health monitor icon on a 128x128 RGB OLED (SSD1351) screen. It can easily be adapted to pretty much any single index that can be generated by the computer via web scraping or other means (eg. how long since a plant was watered, hard disk space remaining, unread email count etc.).
For the Fear and Greed index, we use the scores as follows:
- Low health images used for low index value (Fear)
- High health images used for high index value (Greed)
This does not mean greed is good, m'kay?
Hardware
Uses a Waveshare 1.5 inch RGB OLED, 128 x 128 pixels. Tested with Raspberry Pi Zero. TO DO: Pico or STM32 Version
Installation
Follow the setup instructions for the OLED screen.
Clone this repository:
git clone https://github.com/llvllch/doomed.git
cd doomed
Install the required Python3 modules
python3 -m pip install -r requirements.txt
Running
To start the code running, issue the command:
python3 main.py
Video
You can see a video of it running here
Acknowlegements
- The default images are based on the sprite set shared online by FalconDelta.
- Doom - https://en.wikipedia.org/wiki/Doom_(1993_video_game)
OLED_Driver.py
from Waveshare
Licence
GPL 3.0