micro Raspberry Pi HAT.
Our tiniest OLED display HAT. Though don't let the size fool you. The high pixel density coupled with 10,000:1 contrast ratio makes this display very legible, even from a distance!
- 64 x 32 pixel 0.49 inch White PMOLED - M00931
The M00931 is a 0.49" 64 x 32 pixel full graphic white PMOLED with a simple i2c interface. It's easy to setup and ideal for displaying text, icons, and animations.
Questions, comments - good and bad. We'd love to hear from you.
Using Chocolate Chip with Python and Luma OLED
The Luma OLED package provides a simple yet powerful Python driver that works very well with the M00931 OLED on the Chocolate Chip.
1. Connect your Pi (all versions should work) to the internet so that you can use apt-get and pip easily. This can be somewhat challenging with a Pi Zero but the USB-ethernet gadget driver works well enough. There is a fine howto provided by Lady Ada at Adafruit to handle the Pi Zero setup: https://learn.adafruit.com/turning-your-raspberry-pi-zero-into-a-usb-gadget/ethernet-gadget
2. Verify connectivity then execute the excellent install instructions provided by the Luma developers:
a. Initial setup to have root-level access to the serial busses (we use i2c to paint the display) and GPIO:
b. Library installation to get the latest version of Luma:
c. Once you have the libraries installed, clone the examples to try out a few of the demos:
d. You should now have a directory named luma.examples. From the examples directory, try a few of the Python scripts like this:
./3d_box -i i2c --width 64 --height 32
Use the “-i i2c” to tell luma.oled that we’re using the first i2c bus, and “--width 64 --height 32 ” because we have a 64 x 32 display.
Hopefully, this quick guide shows how simple it actually is to get running with a small OLED.
Let us know how it goes for you and most importantly, share your projects! We’re excited to see what others can do with our Chocolate Chip