renamed folder and added neopixel gpio

This commit is contained in:
leoli51 2021-09-18 16:05:13 +02:00
parent 68a4b6448e
commit bb424c7510
5 changed files with 8 additions and 4 deletions

View File

@ -291,7 +291,7 @@ jobs:
- "makerdiary_nrf52840_mdk"
- "makerdiary_nrf52840_mdk_usb_dongle"
- "matrixportal_m4"
- "melopero_shake"
- "melopero_shake_rp2040"
- "meowbit_v121"
- "meowmeow"
- "metro_m0_express"

View File

@ -1,6 +1,8 @@
#define MICROPY_HW_BOARD_NAME "Melopero Shake"
#define MICROPY_HW_BOARD_NAME "Melopero Shake RP2040"
#define MICROPY_HW_MCU_NAME "rp2040"
#define MICROPY_HW_NEOPIXEL (&pin_GPIO16)
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO3)
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO2)

View File

@ -1,11 +1,11 @@
USB_VID = 0x2E8A
USB_PID = 0x1005
USB_PRODUCT = "Shake"
USB_PRODUCT = "Shake RP2040"
USB_MANUFACTURER = "Melopero"
CHIP_VARIANT = RP2040
CHIP_FAMILY = rp2
EXTERNAL_FLASH_DEVICES = "W25Q16JVxQ"
EXTERNAL_FLASH_DEVICES = "W25Q128JVxM"
CIRCUITPY__EVE = 1

View File

@ -27,6 +27,8 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
{ MP_ROM_QSTR(MP_QSTR_D13), MP_ROM_PTR(&pin_GPIO13) },
{ MP_ROM_QSTR(MP_QSTR_LED), MP_ROM_PTR(&pin_GPIO13) },
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_GPIO16) },
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) },