From 84b550cf799f3d8f407bebb33a3781f40dcb55f2 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Sat, 1 Feb 2025 08:22:27 +0000 Subject: [PATCH] Remove extra modules from RP2040 builds. These were not included in previous pimoroni-pico builds and blow the build size. --- boards/usermod-common.cmake | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/boards/usermod-common.cmake b/boards/usermod-common.cmake index 0aee380..0f40935 100644 --- a/boards/usermod-common.cmake +++ b/boards/usermod-common.cmake @@ -36,9 +36,6 @@ include(micropython-common-breakouts) # Utility include(adcfft/micropython) -# LEDs & Matrices -include(plasma/micropython) - # Unicorn driver. Note: The UNICORN var must be set in mpconfigboard.cmake include(${UNICORN}_unicorn/micropython) @@ -46,11 +43,17 @@ include(${UNICORN}_unicorn/micropython) include(micropython-common-ulab) enable_ulab() +# These do not fit on the 2MB RP2040 Pico W +if(PICO_PLATFORM EQUAL "rp2350-arm-s") +# LEDs & Matrices +include(plasma/micropython) + # Servos & Motors include(pwm/micropython) include(servo/micropython) include(encoder/micropython) include(motor/micropython) +endif() # Still required for version.py include(modules_py/modules_py)