Skip to content

Commit

Permalink
MicroPython: Avoid some duplication in CMake f iles.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Feb 20, 2023
1 parent ccf7fe4 commit 6d020db
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 147 deletions.
21 changes: 1 addition & 20 deletions micropython/modules/badger2040-micropython.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../")
include(pimoroni_i2c/micropython)
include(pimoroni_bus/micropython)

include(breakout_dotmatrix/micropython)
include(breakout_encoder/micropython)
include(breakout_ioexpander/micropython)
include(breakout_ltr559/micropython)
include(breakout_as7262/micropython)
include(breakout_rgbmatrix5x5/micropython)
include(breakout_matrix11x7/micropython)
include(breakout_msa301/micropython)
include(breakout_pmw3901/micropython)
include(breakout_mics6814/micropython)
include(breakout_potentiometer/micropython)
include(breakout_rtc/micropython)
include(breakout_trackball/micropython)
include(breakout_sgp30/micropython)
include(breakout_bh1745/micropython)
include(breakout_bme68x/micropython)
include(breakout_bme280/micropython)
include(breakout_bmp280/micropython)
include(breakout_icp10125/micropython)
include(breakout_scd41/micropython)
include(micropython-common-breakouts)

include(hershey_fonts/micropython)
include(bitmap_fonts/micropython)
Expand Down
22 changes: 1 addition & 21 deletions micropython/modules/micropython-badger2040w.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,7 @@ include(jpegdec/micropython)
include(qrcode/micropython/micropython)

# Sensors & Breakouts
include(breakout_dotmatrix/micropython)
include(breakout_encoder/micropython)
include(breakout_ioexpander/micropython)
include(breakout_ltr559/micropython)
include(breakout_as7262/micropython)
include(breakout_rgbmatrix5x5/micropython)
include(breakout_matrix11x7/micropython)
include(breakout_msa301/micropython)
include(breakout_pmw3901/micropython)
include(breakout_mics6814/micropython)
include(breakout_potentiometer/micropython)
include(breakout_rtc/micropython)
include(breakout_trackball/micropython)
include(breakout_sgp30/micropython)
include(breakout_bh1745/micropython)
include(breakout_bme68x/micropython)
include(breakout_bme280/micropython)
include(breakout_bmp280/micropython)
include(breakout_icp10125/micropython)
include(breakout_scd41/micropython)
include(breakout_vl53l5cx/micropython)
include(micropython-common-breakouts)
include(pcf85063a/micropython)

# Utility
Expand Down
21 changes: 21 additions & 0 deletions micropython/modules/micropython-common-breakouts.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
include(breakout_dotmatrix/micropython)
include(breakout_encoder/micropython)
include(breakout_ioexpander/micropython)
include(breakout_ltr559/micropython)
include(breakout_as7262/micropython)
include(breakout_rgbmatrix5x5/micropython)
include(breakout_matrix11x7/micropython)
include(breakout_msa301/micropython)
include(breakout_pmw3901/micropython)
include(breakout_mics6814/micropython)
include(breakout_potentiometer/micropython)
include(breakout_rtc/micropython)
include(breakout_trackball/micropython)
include(breakout_sgp30/micropython)
include(breakout_bh1745/micropython)
include(breakout_bme68x/micropython)
include(breakout_bme280/micropython)
include(breakout_bmp280/micropython)
include(breakout_icp10125/micropython)
include(breakout_scd41/micropython)
include(breakout_vl53l5cx/micropython)
22 changes: 1 addition & 21 deletions micropython/modules/micropython-common.cmake
Original file line number Diff line number Diff line change
@@ -1,27 +1,7 @@
include(pimoroni_i2c/micropython)
include(pimoroni_bus/micropython)

include(breakout_dotmatrix/micropython)
include(breakout_encoder/micropython)
include(breakout_ioexpander/micropython)
include(breakout_ltr559/micropython)
include(breakout_as7262/micropython)
include(breakout_rgbmatrix5x5/micropython)
include(breakout_matrix11x7/micropython)
include(breakout_msa301/micropython)
include(breakout_pmw3901/micropython)
include(breakout_mics6814/micropython)
include(breakout_potentiometer/micropython)
include(breakout_rtc/micropython)
include(breakout_trackball/micropython)
include(breakout_sgp30/micropython)
include(breakout_bh1745/micropython)
include(breakout_bme68x/micropython)
include(breakout_bme280/micropython)
include(breakout_bmp280/micropython)
include(breakout_icp10125/micropython)
include(breakout_scd41/micropython)
include(breakout_vl53l5cx/micropython)
include(micropython-common-breakouts)

include(pico_scroll/micropython)
include(pico_rgb_keypad/micropython)
Expand Down
22 changes: 1 addition & 21 deletions micropython/modules/micropython-picow.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,7 @@ include(jpegdec/micropython)
include(qrcode/micropython/micropython)

# Sensors & Breakouts
include(breakout_dotmatrix/micropython)
include(breakout_encoder/micropython)
include(breakout_ioexpander/micropython)
include(breakout_ltr559/micropython)
include(breakout_as7262/micropython)
include(breakout_rgbmatrix5x5/micropython)
include(breakout_matrix11x7/micropython)
include(breakout_msa301/micropython)
include(breakout_pmw3901/micropython)
include(breakout_mics6814/micropython)
include(breakout_potentiometer/micropython)
include(breakout_rtc/micropython)
include(breakout_trackball/micropython)
include(breakout_sgp30/micropython)
include(breakout_bh1745/micropython)
include(breakout_bme68x/micropython)
include(breakout_bme280/micropython)
include(breakout_bmp280/micropython)
include(breakout_icp10125/micropython)
include(breakout_scd41/micropython)
include(breakout_vl53l5cx/micropython)
include(micropython-common-breakouts)
include(pcf85063a/micropython)

# Utility
Expand Down
22 changes: 1 addition & 21 deletions micropython/modules/micropython-picow_cosmic_unicorn.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,7 @@ include(jpegdec/micropython)
include(qrcode/micropython/micropython)

# Sensors & Breakouts
include(breakout_dotmatrix/micropython)
include(breakout_encoder/micropython)
include(breakout_ioexpander/micropython)
include(breakout_ltr559/micropython)
include(breakout_as7262/micropython)
include(breakout_rgbmatrix5x5/micropython)
include(breakout_matrix11x7/micropython)
include(breakout_msa301/micropython)
include(breakout_pmw3901/micropython)
include(breakout_mics6814/micropython)
include(breakout_potentiometer/micropython)
include(breakout_rtc/micropython)
include(breakout_trackball/micropython)
include(breakout_sgp30/micropython)
include(breakout_bh1745/micropython)
include(breakout_bme68x/micropython)
include(breakout_bme280/micropython)
include(breakout_bmp280/micropython)
include(breakout_icp10125/micropython)
include(breakout_scd41/micropython)
include(breakout_vl53l5cx/micropython)
include(micropython-common-breakouts)
include(pcf85063a/micropython)

# Utility
Expand Down
22 changes: 1 addition & 21 deletions micropython/modules/micropython-picow_enviro.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,7 @@ include(jpegdec/micropython)
include(qrcode/micropython/micropython)

# Sensors & Breakouts
include(breakout_dotmatrix/micropython)
include(breakout_encoder/micropython)
include(breakout_ioexpander/micropython)
include(breakout_ltr559/micropython)
include(breakout_as7262/micropython)
include(breakout_rgbmatrix5x5/micropython)
include(breakout_matrix11x7/micropython)
include(breakout_msa301/micropython)
include(breakout_pmw3901/micropython)
include(breakout_mics6814/micropython)
include(breakout_potentiometer/micropython)
include(breakout_rtc/micropython)
include(breakout_trackball/micropython)
include(breakout_sgp30/micropython)
include(breakout_bh1745/micropython)
include(breakout_bme68x/micropython)
include(breakout_bme280/micropython)
include(breakout_bmp280/micropython)
include(breakout_icp10125/micropython)
include(breakout_scd41/micropython)
include(breakout_vl53l5cx/micropython)
include(micropython-common-breakouts)
include(pcf85063a/micropython)

# Utility
Expand Down
4 changes: 3 additions & 1 deletion micropython/modules/micropython-picow_galactic_unicorn.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ include(adcfft/micropython)
# LEDs & Matrices
include(galactic_unicorn/micropython)

# include(micropython-common)
# ULAB
include(micropython-common-ulab)
enable_ulab()

include(modules_py/modules_py)
22 changes: 1 addition & 21 deletions micropython/modules/micropython-picow_inky_frame.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,7 @@ include(jpegdec/micropython)
include(qrcode/micropython/micropython)

# Sensors & Breakouts
include(breakout_dotmatrix/micropython)
include(breakout_encoder/micropython)
include(breakout_ioexpander/micropython)
include(breakout_ltr559/micropython)
include(breakout_as7262/micropython)
include(breakout_rgbmatrix5x5/micropython)
include(breakout_matrix11x7/micropython)
include(breakout_msa301/micropython)
include(breakout_pmw3901/micropython)
include(breakout_mics6814/micropython)
include(breakout_potentiometer/micropython)
include(breakout_rtc/micropython)
include(breakout_trackball/micropython)
include(breakout_sgp30/micropython)
include(breakout_bh1745/micropython)
include(breakout_bme68x/micropython)
include(breakout_bme280/micropython)
include(breakout_bmp280/micropython)
include(breakout_icp10125/micropython)
include(breakout_scd41/micropython)
include(breakout_vl53l5cx/micropython)
include(micropython-common-breakouts)
include(pcf85063a/micropython)

# Utility
Expand Down

0 comments on commit 6d020db

Please sign in to comment.