romu-usb-cdc-serial-debug.py
Simple MicroPython script to read a button state and print the result to the USB serial console.
Flash the MicroPython image for RP2350 onto the Romu board. Use Thonny or a serial terminal to view messages. The board acts as a CDC (Virtual COM Port) device. Ideal for rapid prototyping without compilation.
romu-usb-cdc-serial-debug.py
import time
import machine
# Romu specific: Check if RGB LED is accessible via PWM or digital
# Assuming direct GPIO control for RGB (adjust pins per schematic)
# Note: Romu might use WS2812, requiring neopixel library.
# This example uses simple digital IO for demonstration.
# Placeholder pins for Romu buttons
btn = machine.Pin(12, machine.Pin.IN, machine.Pin.PULL_UP)
print("Romu MicroPython Initialized")
while True:
if btn.value() == 0:
print("Button Pressed!")
time.sleep(0.2) # Debounce
time.sleep(0.01)