DroneBot Workshop posts a video on CircuitPython with Raspberry Pi Pico – Getting Started.
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.
No comments:
Post a Comment