Datasheet

Usage
We'll be using Python to control the display. In theory you can use any language you like that gives you access to the
computer's I2C ports, but our library is for Python only!
Step 1. Dependencies
Before using the library you will need to make sure you have a few dependencies installed. Connect to your Pi using
SSH (https://adafru.it/vbC) and follow the steps below.
Install the RPi.GPIO library by running the following at the command line:
sudo apt-get update
sudo apt-get install build-essential python-dev python-pip
sudo pip install RPi.GPIO
Finally, install the Python Imaging Library (https://adafru.it/dvB) and smbus library by executing:
sudo apt-get install python-imaging python-smbus
Now to download and install the latest Adafruit SSD1306 python library code and examples, execute the following
commands:
sudo apt-get install git
git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git (https://adafru.it/dEH)
cd Adafruit_Python_SSD1306
sudo python setup.py install
This guide assumes you have your Raspberry Pi all set up with an operating system, network connectivity and
SSH!
© Adafruit Industries https://learn.adafruit.com/adafruit-128x64-oled-bonnet-for-raspberry-pi Page 6 of 15