Skip to content

Commit

Permalink
Fix display flicker with cmake magic.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBell committed Aug 15, 2024
1 parent 80c03d9 commit c9ff4ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/c/presto/micropython.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ target_sources(usermod_presto INTERFACE
pico_generate_pio_header(usermod_presto ${REPO_ROOT}/drivers/st7701/st7701_parallel.pio)
pico_generate_pio_header(usermod_presto ${REPO_ROOT}/drivers/st7701/st7701_timing.pio)

set_source_files_properties(${REPO_ROOT}/drivers/st7701/st7701.cpp PROPERTIES COMPILE_OPTIONS "-O2;-fgcse-after-reload;-floop-interchange;-fpeel-loops;-fpredictive-commoning;-fsplit-paths;-ftree-loop-distribute-patterns;-ftree-loop-distribution;-ftree-vectorize;-ftree-partial-pre;-funswitch-loops")

target_include_directories(usermod_presto INTERFACE
${CMAKE_CURRENT_LIST_DIR}
${PIMORONI_PICO_PATH}/libraries/pico_graphics/
Expand Down

0 comments on commit c9ff4ee

Please sign in to comment.