วันพุธที่ 25 มกราคม พ.ศ. 2560

Raspberry Pi connect OLED I2C Display ( Python Code )



Raspberry Pi connect OLED I2C Display ( Python Code )



Wiring Diagram

Hardware

Raspberry Pi Board ( we use Raspberry Pi3 board )
I2C OLED Display ( 128 x 64 0.96' SSD1306 chip )


OLED I2C Python  Library from Adafruit

use command line

sudo apt-get install build-essential python-dev python-pip python-imaging python-smbus git

sudo pip install RPi.GPIO

git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git

cd Adafruit_Python_SSD1306
sudo python setup.py install


My Code on Github ( Edit from original ) and add some fonts ( Minecrafia.ttf )
https://github.com/amphancm/RaspberryPi_OLED


Reference
https://blog.jokielowie.com/en/2016/03/wyswietlacz-oled-ssd1306-i-raspberry-pi/

OLED Adafruit Python Library
https://github.com/adafruit/Adafruit_Python_SSD1306



My Website
email : info@softpowergroup.net   Tel .081-6452400

My Blog about Android and Arduino IoT



LINE : adunfong
FaceBook : https://www.facebook.com/adun.nantakaew
email: amphancm@gmail.com




1 ความคิดเห็น:

  1. hi
    this code looks really good and seems to work for you but i tried to follow it and actually got lost from step one. could you tell me how to get the 'cd python_oled' file? everything else seems to work but this.
    thank you!

    ตอบลบ