Datasheet

Press buttons to interact with the demo. Press the joystick + buttons at once for an Easter egg!
Running Scripts on Boot
You can pretty easily make it so this program (or whatever program you end up writing) run every time you boot your
Pi.
The fastest/easiest way is to put it in /etc/rc.local
Run sudo nano /etc/rc.local and add the line
sudo python /home/pi/Adafruit_Python_SSD1306/examples/buttons.py &
on its own line right before exit 0
Then save and exit. Reboot to verify that the screen comes up on boot!
For more advanced usage, check out our linux system services guide (https://adafru.it/wFR)
Library Usage
Inside the examples subdirectory you'll find python scripts which demonstrate the usage of the library. These are
covered in more detail in our OLED guide here, so do check them out. (https://adafru.it/wF9)
To help you get started, I'll walk through the buttons.py code below, that way you can use this file as the basis of a
future project.
Python library setup
© Adafruit Industries https://learn.adafruit.com/adafruit-128x64-oled-bonnet-for-raspberry-pi Page 8 of 15