www.joy
-
it.net
Pascalstr. 8 47506 Neukirchen
-
Vluyn
4. USE WITH THE RASPBERRY PI
First, we install the library and download the sample files, this is done
with the following commands:
To make using the display with the Raspberry Pi particularly easy, we use
the luma.oled library.
You can install the dependencies required for installation with the follo-
wing commands:
There you can now activate
SPI
and
I2C
under
3 Interface Options
so
that you can use both interfaces.
Now enter the following command in the terminal:
Next, you must give the user (in this case "pi") permission to access the
required hardware. If you are not using the user "pi", change the user at
the end of the command accordingly.
sudo
-
H pip3 install
--
upgrade luma.oled
sudo git clone https://github.com/rm
-
hull/luma.examples.git
sudo raspi
-
config
sudo usermod
-
a
-
G spi,gpio,i2c pi
sudo apt
-
get update
sudo apt
-
get install git python3 python3
-
dev python3
-
pip
python3
-
pip python3
-
pil libjpeg
-
dev zlib1g
-
dev libfreetype6
-
dev
liblcms2
-
dev libopenjp2
-
7 libtiff5 build
-
essential libsdl
-
dev
libportmidi
-
dev libsdl
-
ttf2.0
-
dev libsdl
-
mixer1.2
-
dev libsdl
-
image1.2
-
dev
sudo reboot
Then restart your Raspberry Pi with the following command:
After the reboot, enter following command into the terminal: