OLED Display ini bersaiz 0.96″, mempunyai pixel 128×64 dan menggunakan controller SSD1306. OLED display ini boleh menggunakan komunikasi SPI atau I2C. Bagi contoh ini menggunakan I2C. Interface OLED Display dengan Arduino boleh rujuk CT-Uno Lesson: OLED Display.
Melalui Terminal Raspberry Pi, copy git dari Adafruit_Python_SSD1306.
1 2 3 4 5 6 7 8 9 10 |
sudo apt-get install build-essential sudo apt-get install python-dev sudo apt-get install python-smbus sudo apt-get install git sudo apt-get install python-imaging sudo apt-get install python-pip sudo pip install RPi.GPIO git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git cd Adafruit_Python_SSD1306 sudo python setup.py install |
Berikut adalah demo OLED Display ini.
Video dari Cytron Technologies
Python Source Code