That’s right! It’s CircuitPython on Raspberry Pi! Wire up your favorite sensors and use the same great CircuitPython code you’ve been using with microcontrollers right on your Raspberry Pi!
We’ve got tons of projects, libraries and example code for CircuitPython on microcontrollers, and thanks to the flexibility and power of Python it’s easy to get it working with micro-computers like Raspberry Pi or other ‘Linux with GPIO pins available’ single board computers.
We’ve written a special library called Adafruit Blinka to provide the layer that translates the CircuitPython hardware API to whatever library the Linux board provides.
We’ve added all the libraries to PyPi so installation is super simple via pip. We’ve also updated the CircuitPython guides! They now have sections for wiring up the sensor to and installing the libraries on your Raspberry Pi. The CircuitPython code works exactly the same way it works on microcontrollers, so the code examples will work on your Raspberry Pi too!
We have over 100 guides to update, so watch for updates to the Adafruit Learning System in batches. Here’s the next two:
Adafruit PiOLED – 128×32 Mini OLED for Raspberry Pi
The most compact lil’ display for a Raspberry Pi. Updated Guide.
Adafruit 128×64 OLED Bonnet for Raspberry Pi
If you’d like a compact display, with buttons and a joystick – we’ve got what you’re looking for. The Adafruit 128×64 OLED Bonnet for Raspberry Pi is the big sister to our mini PiOLED add-on. This version has 128×64 pixels (instead of 128×32) and a much larger screen besides. With the OLED display in the center, we had some space on either side so we added a 5-way joystick and two pushbuttons. Great for when you want to have a control interface for your project.. Updated Guide.
Check out these updated guides today in the Adafruit Learning System.