Sample CircuitPython Code¶
The following scripts are intended to run in CircuitPython on a microcontroller. They are specifically written for the Adafruit Circuit Playground Bluefruit we use in this course.
- Introductory Examples - Adafruit Circuit Playground Bluefruit
- Introductory Examples - Adafruit Crickit with CPB
- Quick Reference Guide - Adafruit Circuit Playground Bluefruit
- Quick Reference Guide - Adafruit Crickit with CPB
- Audio Examples - Adafruit Circuit Playground Bluefruit
- Soft Sensing Examples - Adafruit Circuit Playground Bluefruit
- Hobby Servo Examples - Adafruit Circuit Playground Bluefruit
- Ticklish Device Example - Adafruit Circuit Playground Bluefruit
- Bluetooth Sensor Capture - Adafruit Circuit Playground Bluefruit
- Remote Connection Examples - Adafruit Circuit Playground Bluefruit
- Motor Pump Examples - Adafruit Circuit Playground Bluefruit
- Program Structure - CircuitPython
For other CircuitPython code samples including signal processing and numerical computation, please see the Pico CircuitPython examples supplied with the course notes for Creative Kinetic Systems. These also include hardware examples specifically for the Raspberry Pi Pico which could be adapted for the CPB with minimal work.
Sample Python Code¶
The following scripts are intended to run in Python on a normal desktop or laptop.
Sample Arduino Code¶
The course reserves include some Arduino-based hardware for which the following sketches may apply.