From 5f605b2b5941d6ee5be342c6356a3fa2646c1b97 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Mon, 25 Nov 2024 14:44:04 +0000 Subject: [PATCH] MicroPython: Add Pico2 Inky module config. --- .../micropython-inky_frame_pico2.cmake | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 micropython/modules/micropython-inky_frame_pico2.cmake diff --git a/micropython/modules/micropython-inky_frame_pico2.cmake b/micropython/modules/micropython-inky_frame_pico2.cmake new file mode 100644 index 000000000..3c568afa4 --- /dev/null +++ b/micropython/modules/micropython-inky_frame_pico2.cmake @@ -0,0 +1,58 @@ +include_directories(${CMAKE_CURRENT_LIST_DIR}/../../) + +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../") +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../") + +set(CMAKE_C_STANDARD 11) +set(CMAKE_CXX_STANDARD 17) + +# Essential +include(pimoroni_i2c/micropython) +include(pimoroni_bus/micropython) + +# Pico Graphics Essential +include(hershey_fonts/micropython) +include(bitmap_fonts/micropython) +include(picographics/micropython) + +# Pico Graphics Extra +include(pngdec/micropython) +include(jpegdec/micropython) +include(qrcode/micropython/micropython) + +# Sensors & Breakouts +include(micropython-common-breakouts) +include(pcf85063a/micropython) + +# Utility +include(adcfft/micropython) +include(wakeup/micropython) + +# Configure wakeup for Inky Frame +target_compile_definitions(usermod_wakeup INTERFACE + -DWAKEUP_HAS_RTC=1 + -DWAKEUP_HAS_SHIFT_REGISTER=1 + -DWAKEUP_PIN_MASK=0b01000100 + -DWAKEUP_PIN_DIR=0b01000100 + -DWAKEUP_PIN_VALUE=0b01000100 +) + +# LEDs & Matrices +include(plasma/micropython) + +# Servos & Motors +include(pwm/micropython) +include(servo/micropython) +include(encoder/micropython) +include(motor/micropython) + +include(modules_py/modules_py) + +copy_module(inky_frame.py) + +# C++ Magic Memory +include(cppmem/micropython) + +# Disable build-busting C++ exceptions +include(micropython-disable-exceptions)