A simple program that uses the onboard features to get started with this platform
the YD-RP2040 is a RP-2040 based board that is:
- cheap
- offer a rgb led
- offer a reset button
- offer a power led indicator
- offer a usr button
- has an USB C connector
it is prefect to get started
GPIO23 pin can be used to control the onboard RGB WS2812 LED.
if you want to use this feature you have to bridge the R68 pads (I'm not sure if an actual resistor need to be used but a ball of melted tin is doing the job)
the led can be controlled with the NeoPixel driver.
a button is connected to GPIO24
the board offers a simple led connected to the GPIO25 pin
follow instructions in here. (I've used the pico firmware, and it seems to work fine)
in short:
- connect board to usb while pressing the boot button
- drop micropython fw on the controller
you can access the REPL via usb serial
after you figure which serial port is being usded (dmesg is your friend)
screen /dev/ttyACM0 115200
exit screen by pressing "ctrl+a" and immediatelly ""
simply run
mpremote
similarly to screen, exit by pressing "ctrl+a" and immediatelly ""
mpremote fs cp main.py :main.py
this command works similarly to the bash cp (you can rename files while moving them)