diff --git a/firmware/PIMORONI_YUKON/micropython.cmake b/firmware/PIMORONI_YUKON/micropython.cmake index e69de29..a180528 100644 --- a/firmware/PIMORONI_YUKON/micropython.cmake +++ b/firmware/PIMORONI_YUKON/micropython.cmake @@ -0,0 +1,30 @@ +set(PIMORONI_PICO_PATH ../../../../pimoroni-pico) +include(${CMAKE_CURRENT_LIST_DIR}/../pimoroni_pico_import.cmake) + +include_directories(${PIMORONI_PICO_PATH}/micropython) + +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../") +list(APPEND CMAKE_MODULE_PATH "${PIMORONI_PICO_PATH}/micropython") +list(APPEND CMAKE_MODULE_PATH "${PIMORONI_PICO_PATH}/micropython/modules") + +# Enable support for string_view (for PicoGraphics) +set(CMAKE_C_STANDARD 11) +set(CMAKE_CXX_STANDARD 17) + +# Essential +include(pimoroni_i2c/micropython) +include(pimoroni_bus/micropython) + +# Sensors & Breakouts +include(micropython-common-breakouts) +include(pcf85063a/micropython) + +# Utility +include(adcfft/micropython) + +# Note: cppmem is *required* for C++ code to function on MicroPython +# it redirects `malloc` and `free` calls to MicroPython's heap +include(cppmem/micropython) + +# version.py, pimoroni.py and boot.py +include(modules_py/modules_py)