Software › CYW43 LED (on-board, via WiFi chip)

CYW43 LED (on-board, via WiFi chip)

demo Open · freely redistributable

A tiny original public-domain program that demonstrates the Pico W's defining quirk: the on-board LED is not an RP2040 GPIO, it hangs off the CYW43439 WiFi chip's WL_GPIO0. The program emits the authentic CYW43439 gSPI command stream — the SPI_BUS_CONTROL 32-bit big-endian select and the WLC_SET_VAR "gpioout" chip-GPIO ioctl (mask=1, value=on/off for WL_GPIO0) — into PIO1's TX FIFO, which our high-level CYW43439 model decodes to toggle the on-board LED. Real ARM machine code, so every instruction single-steps in the debugger.

Download ↓ Original source ↗

Format: Raw RP2040 flash image (Thumb), base64  ·  By: emulators.org  ·  Licence: Public domain

Runs on