gpio-led-blink-micropython.py
Simple MicroPython script to control an LED via the RP2350 microcontroller integrated into the board.
Connect an LED with a series resistor between the GPIO pin corresponding to GP15 and ground. Load this script onto the RP2350 via the serial interface or Thonny IDE. Ensure the RP2350 serial driver is installed on Ubuntu 26.04. The script runs in an infinite loop as long as power is maintained.
gpio-led-blink-micropython.py
from machine import Pin
import time
# Le RP2350 sur la LattePanda Sigma 2 expose les broches GPIO via l'en-tête 30+4.
# Cette broche est généralement mappée à GP15 (à vérifier selon le schéma officiel).
led = Pin(15, Pin.OUT)
print("Démarrage du test GPIO sur LattePanda Sigma 2 (RP2350)")
while True:
led.value(1) # Allumer la LED
time.sleep(0.5)
led.value(0) # Éteindre la LED
time.sleep(0.5)