-Install RPI.GPIO for odroid !!after luma.oled, as the spi interface of luma.oled need the gpios RPI.24 and RPI.25, and with luma.oled will be installed the officially RPI.GPIO.
-Install the luma examples.
Here are some commandos I saved from my C1:
Code: Select all
//luma.oled and dependencies
sudo apt-get install python3-dev
sudo pip3 install psutil
sudo pip3 install feedparser
sudo pip3 install luma.oled
//RPi.GPIO-Odroid
git clone https://github.com/awesometic/RPi.GPIO-Odroid
cd RPi.GPIO-Odroid
sudo python3 setup.py build install
cd ..
//luma examples dependencies
sudo apt install python3-dev python3-pip libfreetype6-dev libjpeg-dev build-essential
sudo apt install libsdl-dev libportmidi-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev libsdl-image1.2-dev
//luma examples
git clone https://github.com/rm-hull/luma.examples.git
cd luma.examples
sudo pip3 install -e .
cd examples
//load spi kernel modules
sudo modprobe spidev
sudo modprobe spicc
Code: Select all
sudo python3 font_awesome.py -i spi --display ssd1309 --spi-bus-speed 4000000