7 Using the Circuit Playground Express CircuitPython Library

Writing Circuit Playground Express programs that interact with the board’s features is greatly simplified by using the specialized CircuitPython library provided by Adafruit. The library, introduced in Chapter 6, allows project creators to focus on their goals and not spend unnecessary time figuring out the internals of the board.

In this chapter, the Circuit Playground Express CircuitPython library will be used to read the sensors on the board. The data is first displayed in the Serial window and then to a spreadsheet. Finally, the board’s exterior pads are set up for capacitive touch switching, letting you coax music out of fruit from your refrigerator.

Reading Sensors

In Microsoft ...

Get Getting Started with Adafruit Circuit Playground Express now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.