Datasheet

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 stats.py code below, that way you can use this file as the basis of a future
project.
First a few modules are imported, including the Adafruit_SSD1306 module which contains the OLED display driver
classes. You can also see some of the Python Imaging Library modules like Image, ImageDraw, and ImageFont being
imported. Those are, as you can imagine, are for drawing images, shapes and text/fonts!
import time
import Adafruit_GPIO.SPI as SPI
import Adafruit_SSD1306
from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont
import subprocess
© Adafruit Industries https://learn.adafruit.com/adafruit-pioled-128x32-mini-oled-for-raspberry-pi Page 9 of 15