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 five:
Adafruit 9-DOF Accel/Mag/Gyro+Temp Breakout Board – LSM9DS0 – while this has been discontinued by Adafruit, we’re still supporting use in CircuitPython in both I2C and SPI modes. Updated Guide
Adafruit 9-DOF Accel/Mag/Gyro+Temp Breakout Board – LSM9DS1 – Add motion, direction and orientation sensing to your Arduino project with this all-in-one 9-DOF sensor. Inside the chip are three sensors, one is a classic 3-axis accelerometer, which can tell you which direction is down towards the Earth (by measuring gravity) or how fast the board is accelerating in 3D space. Updated Guide
DC Motor + Stepper FeatherWing Add-on For All Feather Boards – This is the DC Motor + Stepper FeatherWing which will let you use 2 x bi-polar stepper motors or 4 x brushed DC motors (or 1 stepper and 2 DC motors). Updated Guide
Adafruit DC & Stepper Motor HAT for Raspberry Pi – Mini Kit – Let your robotic dreams come true with the new DC+Stepper Motor HAT from Adafruit. This Raspberry Pi add-on is perfect for any motion project as it can drive up to 4 DC or 2 Stepper motors with full PWM speed control.Raspberry Pi and motors are not included. Updated Guide
Adafruit Motor/Stepper/Servo Shield for Arduino v2 Kit – v2.3 – We have upgraded the shield kit to make the bestest, easiest way to drive DC and Stepper motors. This shield will make quick work of your next robotics project! We kept the ability to drive up to 4 DC motors or 2 stepper motors, but added many improvements. Updated Guide
Check out these updated guides today in the Adafruit Learning System.