Datasheet
Step 2. Enable i2c
To enable i2c, you can follow our detailed guide on configuring the Pi with I2C support here. (https://adafru.it/dEO)
After you've enabled I2C you will need to shutdown with sudo shutdown -h now
Once the Pi has halted, plug in the PiOLED. Now you can power the Pi back up, and log back in. Run the following
command from a terminal prompt to scan/detect the I2C devices
sudo i2cdetect -y 1
You should see the following, indicating that address 0x3c (the OLED display) was found
Step 3. Verify I2C Device
While in the Adafruit_Python_SSD1306 folder, you can run our buttons example, which will let you press various
buttons and see them mimicked on the OLED
Run sudo python examples/buttons.py to run the demo, you should see something like the below:
© Adafruit Industries https://learn.adafruit.com/adafruit-128x64-oled-bonnet-for-raspberry-pi Page 7 of 15