
This is just a quick post showing blink on the Adafruit Feather RP2040. I’ve done a few things with the Raspberry Pico. I love the Pico because of how much power and io pins that cheap little board has. But, sometimes I want a board with other than just the basics. Here is where I am hoping the Adafruit Feather RP2040 will become my microcontroller of choice.
I’ll test this feather in various ways soon. But for now, I just wanted to get it going and test it with my version of a blink test.
CircuitPython installed
I am testing this board with the latest version CircuitPython for this board. At the time of his post, that is CircuitPython 6.2.0-rc.0. I also have the neopixel.mpy library copied over to the feather.
Script used
Below is the blink program I quickly wrote for this board. Since this board has a built-in neopixel, I decided to use that for testing. But it is worth noting that this board has a red LED that can be accessed via D13.
I am also testing REPL functionality by having the script sent the communication through the serial port.
And finally, I am having the neopixel rotate through three colors. I probably could have shortened this code. But sometimes, just writing code in more of a long-form takes less time for us non-programmers.
import time
import board
import neopixel
pixels = neopixel.NeoPixel(board.NEOPIXEL, 1)
while True:
pixels.fill((255, 0, 0))
print("High")
time.sleep(0.5)
pixels.fill((0, 0, 0))
print("Low")
time.sleep(0.5)
pixels.fill((0, 255, 0))
print("High")
time.sleep(0.5)
pixels.fill((0, 0, 0))
print("Low")
time.sleep(0.5)
pixels.fill((0, 0, 255))
print("High")
time.sleep(0.5)
pixels.fill((0, 0, 0))
print("Low")
time.sleep(0.5)
Video of the blink
For some reason I love blink videos. Here is this one!