Sample CircuitPython Code

We will be using a CircuitPython microcontroller to control physical hardware. The following examples introduce basic embedded programming techniques.

Sample Arduino Code

We sometimes also used Arduino microcontrollers. Arduino programs are called ‘sketches’. The following examples are used in the Arduino tutorials.

Sample Python Code

Most of our projects will use standalone Arduino sketches, but it possible to extend the systems using communication between an Arduino and a host computer over the USB serial port. The following Python programs run on the host computer in conjunction with an Arduino sketch to provide broader capabilities.