Skip to content

Commit bb424c7

Browse files
committed
renamed folder and added neopixel gpio
1 parent 68a4b64 commit bb424c7

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ jobs:
291291
- "makerdiary_nrf52840_mdk"
292292
- "makerdiary_nrf52840_mdk_usb_dongle"
293293
- "matrixportal_m4"
294-
- "melopero_shake"
294+
- "melopero_shake_rp2040"
295295
- "meowbit_v121"
296296
- "meowmeow"
297297
- "metro_m0_express"

ports/raspberrypi/boards/melopero_shake/mpconfigboard.h renamed to ports/raspberrypi/boards/melopero_shake_rp2040/mpconfigboard.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
#define MICROPY_HW_BOARD_NAME "Melopero Shake"
1+
#define MICROPY_HW_BOARD_NAME "Melopero Shake RP2040"
22
#define MICROPY_HW_MCU_NAME "rp2040"
33

4+
#define MICROPY_HW_NEOPIXEL (&pin_GPIO16)
5+
46
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO3)
57
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO2)
68

Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
USB_VID = 0x2E8A
22
USB_PID = 0x1005
3-
USB_PRODUCT = "Shake"
3+
USB_PRODUCT = "Shake RP2040"
44
USB_MANUFACTURER = "Melopero"
55

66
CHIP_VARIANT = RP2040
77
CHIP_FAMILY = rp2
88

9-
EXTERNAL_FLASH_DEVICES = "W25Q16JVxQ"
9+
EXTERNAL_FLASH_DEVICES = "W25Q128JVxM"
1010

1111
CIRCUITPY__EVE = 1

ports/raspberrypi/boards/melopero_shake/pins.c renamed to ports/raspberrypi/boards/melopero_shake_rp2040/pins.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
2727
{ MP_ROM_QSTR(MP_QSTR_D13), MP_ROM_PTR(&pin_GPIO13) },
2828
{ MP_ROM_QSTR(MP_QSTR_LED), MP_ROM_PTR(&pin_GPIO13) },
2929

30+
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_GPIO16) },
31+
3032
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
3133
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
3234
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) },

0 commit comments

Comments
 (0)