I'm using MicroPython v1.19.1 for the RP2040 Connect board as described Here and so far the WiFi is working as well as the IMU. So far so good.
What I haven't figured out is how do I access the three GPIO pins on the NINA module that are hooked to the RGB LED. This micropython includes a driver and the board has a config that makes WiFi work even though it's over SPI. The release notes say that the Wifi NINA102 module is there, but what I can't figure out is did they do something to map the pins so that they appear just as machine.Pin() with a different pin number, and that maps to SPI to the NINA module? Or do I have to add the NINA102 module myself (that seems wrong as I think it would conflict with the network/sockets stuff which is already working).
This Code is part of the NINA driver, and lines 48-56:
static uint8_t pin_map[MICROPY_HW_PIN_EXT_COUNT] = {
27, // LEDR
25, // LEDG
26, // LEDB
34, // A4
39, // A5
36, // A6
35, // A7
};
have given me the idea that machine.Pin(27, Pin.OUT) should control that pin, even though it's not actually physically on the main controller. In other words, I think their intent was to make it transparent to micropython that the pin is actually remote. It does not work, though, so I feel like I'm missing a step.