From 0481f38f29d1c0121631b00216d2311ccb817b07 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Sat, 1 Feb 2025 08:08:15 +0000 Subject: [PATCH 1/3] Enable ulab. --- boards/usermod-common.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/boards/usermod-common.cmake b/boards/usermod-common.cmake index a8a58aa..0aee380 100644 --- a/boards/usermod-common.cmake +++ b/boards/usermod-common.cmake @@ -38,8 +38,14 @@ include(adcfft/micropython) # LEDs & Matrices include(plasma/micropython) + +# Unicorn driver. Note: The UNICORN var must be set in mpconfigboard.cmake include(${UNICORN}_unicorn/micropython) +# Must call `enable_ulab()` to enable +include(micropython-common-ulab) +enable_ulab() + # Servos & Motors include(pwm/micropython) include(servo/micropython) From 84b550cf799f3d8f407bebb33a3781f40dcb55f2 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Sat, 1 Feb 2025 08:22:27 +0000 Subject: [PATCH 2/3] 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) From 87759fa889ad8212a4423ecddd0130c678d7a294 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Sat, 1 Feb 2025 16:56:30 +0000 Subject: [PATCH 3/3] Drop Hershey fonts. --- boards/usermod-common.cmake | 1 - 1 file changed, 1 deletion(-) diff --git a/boards/usermod-common.cmake b/boards/usermod-common.cmake index 0f40935..dfcb3bd 100644 --- a/boards/usermod-common.cmake +++ b/boards/usermod-common.cmake @@ -21,7 +21,6 @@ include(pimoroni_i2c/micropython) include(pimoroni_bus/micropython) # Pico Graphics Essential -include(hershey_fonts/micropython) include(bitmap_fonts/micropython) include(picographics/micropython)