It displays your current balance and profits or losses.

The data is given from https://coinmarketcap.com/ API and refreshed every 3 minutes.

Required material

Of course, a Pi with internet access

In this example, i’m using a OLED screen 0,91" 128 x 32 pixels

Configuration

To install this kind of screen, you can refer to this documentation :

https://learn.adafruit.com/adafruit-pioled-128x32-mini-oled-for-raspberry-pi/usage

Let’s code

The code is based on an example from this repository :

https://github.com/adafruit/Adafruit_Python_SSD1306

Here is the final Python 2 script. Comments will help you to understand the code.