This commit is contained in:
Philip Howard 2025-11-30 19:57:07 +00:00 committed by GitHub
commit 48fe2ecb04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,5 @@
require("bundle-networking")
include("$(PORT_DIR)/boards/manifest.py") include("$(PORT_DIR)/boards/manifest.py")
include("../manifest_pico2.py") include("../manifest_pico2.py")

View File

@ -7,4 +7,8 @@ set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)
set(MICROPY_C_HEAP_SIZE 4096) set(MICROPY_C_HEAP_SIZE 4096)
# Links micropy_lib_lwip and sets MICROPY_PY_LWIP = 1
# Picked up and expanded upon in mpconfigboard.h
set(MICROPY_PY_LWIP ON)
include(${CMAKE_CURRENT_LIST_DIR}/../common.cmake) include(${CMAKE_CURRENT_LIST_DIR}/../common.cmake)

View File

@ -1,7 +1,14 @@
// Board and hardware specific configuration // Board and hardware specific configuration
#define MICROPY_HW_BOARD_NAME "Pimoroni Tiny 2350" #define MICROPY_HW_BOARD_NAME "Pimoroni Tiny 2350 (PPP)"
#define MICROPY_HW_FLASH_STORAGE_BYTES (PICO_FLASH_SIZE_BYTES - (2 * 1024 * 1024)) #define MICROPY_HW_FLASH_STORAGE_BYTES (PICO_FLASH_SIZE_BYTES - (2 * 1024 * 1024))
// Set up networking.
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "PPP2"
// Enable Networking & PPP
#define MICROPY_PY_NETWORK (1)
#define MICROPY_PY_NETWORK_PPP_LWIP (1)
// I2C0 (non-default) // I2C0 (non-default)
#define MICROPY_HW_I2C0_SCL (4) #define MICROPY_HW_I2C0_SCL (4)
#define MICROPY_HW_I2C0_SDA (5) #define MICROPY_HW_I2C0_SDA (5)