Build a Keyboard and Mouse Emulator, make a rainbow with RGB LEDs, and work with a microSD card – all with CircuitPython on a Raspberry Pi Pico!
Once again we are working with the Raspberry Pi Pico, the 4-dollar microcontroller that uses the new RP2040 MCU. And today we’ll be programming it using CircuitPython.
After installing CircuitPython and the MU Editor we will build a Keyboard Emulator for the popular audio program Audacity. You can use the same technique to make a custom keypad for any application, with as many keys as you need.
Next, we emulate a mouse using a Joystick and two pushbuttons. Just because we can.
Then we hook up a microSD card module through the SPI port and learn how to create a file, write to it and read it back. All the basic operations you need to start using microSD cards in your Pico projects.
And finally, we will hook up soon addressed;e REGB LEDs, otherwise known as Neopixels, to our Pico and control them using a few Adafruit libraries and sample code. It’s a rainbow inside the workshop!
CircuitPython is a fork of MicroPython, the language we used in the previous Raspberry Pi Pico video. It was created by Adafruit and has a lot of advantages, especially for beginners.
Using CircuitPython gives us access to over 300 libraries and drivers, allowing us to work with the many features of the Raspberry Pi Pico right now.
We’ll install CircuitPython on a Pico and then work with it using the MU Editor, a Python editor designed for beginners with CircuitPython integration built-in. Of course, you can use any editor that you wish, that’s one of the strengths of CircuitPython – no special software required.
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.