Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some cardputer definition improvements #9273

Merged
merged 1 commit into from
May 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ports/espressif/boards/m5stack_cardputer/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Micropython setup

#define MICROPY_HW_BOARD_NAME "M5 Stack Cardputer"
#define MICROPY_HW_BOARD_NAME "M5Stack Cardputer"
#define MICROPY_HW_MCU_NAME "ESP32S3"

#define MICROPY_HW_NEOPIXEL (&pin_GPIO21)
Expand Down
3 changes: 2 additions & 1 deletion ports/espressif/boards/m5stack_cardputer/mpconfigboard.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
USB_VID = 0x303A
USB_PID = 0x81DA
USB_PRODUCT = "M5STACK Cardputer - CircuitPython"
USB_PRODUCT = "M5Stack Cardputer - CircuitPython"
USB_MANUFACTURER = "M5STACK"

IDF_TARGET = esp32s3
Expand All @@ -11,3 +11,4 @@ CIRCUITPY_ESP_FLASH_SIZE = 8MB
CIRCUITPY_ESPCAMERA = 0

CIRCUITPY_GIFIO = 1
CIRCUITPY_MAX3421E = 0
2 changes: 2 additions & 0 deletions ports/espressif/boards/m5stack_cardputer/pins.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_GPIO1) },
{ MP_ROM_QSTR(MP_QSTR_PORTA1), MP_ROM_PTR(&pin_GPIO1) },
{ MP_ROM_QSTR(MP_QSTR_D1), MP_ROM_PTR(&pin_GPIO1) },
{ MP_ROM_QSTR(MP_QSTR_G1), MP_ROM_PTR(&pin_GPIO1) },
{ MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_GPIO2) },
{ MP_ROM_QSTR(MP_QSTR_PORTA2), MP_ROM_PTR(&pin_GPIO2) },
{ MP_ROM_QSTR(MP_QSTR_D2), MP_ROM_PTR(&pin_GPIO2) },
{ MP_ROM_QSTR(MP_QSTR_G2), MP_ROM_PTR(&pin_GPIO2) },

// Keyboard
{ MP_ROM_QSTR(MP_QSTR_KB_COL_0), MP_ROM_PTR(&pin_GPIO13) },
Expand Down
2 changes: 1 addition & 1 deletion ports/espressif/boards/m5stack_cardputer/sdkconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# LWIP
#
CONFIG_LWIP_LOCAL_HOSTNAME="espressif-esp32s3"
CONFIG_LWIP_LOCAL_HOSTNAME="m5stack-cardputer"
# end of LWIP

# end of Component config
Expand Down