Damien George 0dd25a369e rp2/boards/WEACTSTUDIO: Fix variant names in board.json.
It looks like the variants for this board were never being built properly,
because the auto-build system used the variant name from `board.json` which
did not match the variant names in the original `mpconfigboard.mk`.  Eg
`FLASH_2MB` in `board.json` but `FLASH_2M` in `mpconfigboard.mk`.

This mistake is apparent since 5dff78f38edc0354e854e6c73af61c5064afe9d3,
which made it a build error to specify an invalid variant.

Fix this by using the correct variant names in `board.json`.

Signed-off-by: Damien George <damien@micropython.org>
2024-06-28 22:48:46 +10:00
..
2023-08-23 13:54:37 +10:00

WeAct Studio RP2040

The WeAct Studio RP2040 Board is based on the Raspberry Pi RP2040 and can be purchased with 2/4/8/16 MiB of flash.

These boards are available from a number of resellers and often have the name "Pico Board RP2040". WeAct maintain the WeActStudio.RP2040CoreBoard repository containing information on the board.

Build notes

By default the firmware supports boards with 16MiB flash. This can be configured using the BOARD_VARIANT parameter. The valid options are FLASH_2M, 'FLASH_4M', and 'FLASH_8M'.

> cd ports/rp2
> make BOARD=WEACTSTUDIO BOARD_VARIANT=FLASH_8M submodules all  # Build the 8 MiB variant

Board-specific modules

The board module contains definitions for the onboard LED and user button.

Example:

> import board
> board.led.toggle()  # Toggles the state of the on-board LED
> board.key.value()  # Returns 0 or 1 corresponding to the state of the user key