You can also test for other things on the CPX. Here, the CPX will beep ten times if you hold your hand over it using cpx.light
.
We've also added a slightly more challenging piece of code: a new method, called scanner(), which creates a different effect when you're touching A1 (using cpx.touch_A1
) at the start of the loop. Feel free to dig through the code and figure out how it works.
There are lots of fun things you can do with CircuitPython. Enjoy and explore!