Add OLED display with sys info to your Orange PI board
connection Orange PI Lite:
OLED | Name | Pin |
---|---|---|
VDD |
3.3v | 1 |
SDA |
SDA.0 | 3 |
SCK |
SCL.0 | 5 |
GND |
0v | 9 |
May work on other H5, H3 and H2+ boards uder Armbian. Use i2c-0 pins.To change I2C bus make corresponding changes in main.c row 127 (bus = i2c_init((char*)&"/dev/i2c-0", 0x3c);
)
To run app:
git clone https://github.com/vadzimyatskevich/SSD1306.git
cd SSD1306
make
sudo ./build/ArmbianOLED
To run app at boot time:
sudo crontab -e
- add row:
@reboot /home/<your username here>/SSD1306/build/ArmbianOLED
ex@reboot /home/orangepi/SSD1306/build/ArmbianOLED
- reboot board & enjoy :)
Tested with Armbian image https://www.armbian.com/download/, Orange PI Lite and Orange PI Zero boards.