🛠 Control of the integrated RGB LED

Romu USB Development Board (RP2354A) · debutant · Programmez la LED unique de la carte Romu pour changer de couleur et confirmer l'exécution du code.

  1. Materials: Romu board plugged in, IDE configured with the detected serial port. 2. Hardware understanding: Unlike classic boards, Romu has no externally accessible GPIO pins. The RGB LED is one of the few visual indicators available. It is usually connected to a specific internal pin (check Bitmerse's technical documentation for the exact number, often linked to debug pads). 3. MicroPython code: Open a new file. Import the 'machine' library. Define the LED pin (e.g., led = machine.Pin(25, machine.Pin.OUT)). Note that the pin number may vary depending on the board revision. 4. Test script: Write a simple loop that alternates colors. For example, set the LED to red for 1 second, then green, then blue. Use 'led.value(1)' to turn on and 'led.value(0)' to turn off if the LED is a single monochrome RGB, or use PWM channels if available. 5. Upload: Click the run button in your IDE. The board should restart and run the script. 6. Verification: Observe the LED on the board. It should change color according to your programming. If the LED does not light up, check the pin number in the official documentation, as internal debug pads are not always mapped like standard GPIOs.

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials