Fix 1-bit examples built w/Pico SDK

This commit is contained in:
Phillip Burgess 2023-01-17 13:01:08 -08:00 committed by ladyada
parent 837a2f97bd
commit 2486500a14
5 changed files with 7 additions and 3 deletions

View file

@ -25,9 +25,9 @@ regenerated.
- A couple compile-time constants have been changed to run-time configurable
because some color and resolution things aren't known until a constructor is
called: dvi_vertical_repeat and dvi_monochrome_tmds.
- DVI_1BPP_BIT_REVERSE is set '1' by default. This might affect some examples
built with the Pico SDK (moon, bad_apple), but could be fixed by changing the
compile definitions in CMakeLists.txt in those app subdirectories.
- DVI_1BPP_BIT_REVERSE is switched '1' by default (to work with bit order
used by GFXcanvas1 object). Pico SDK-built examples using 1-bit mode are
fixed by changing the corresponding CMakeLists.txt files to set this to 0.
All files from the PicoDVI repo are kept even if not used in this build
(e.g. apps and assets directories, among others) so same repo can still be

View file

@ -23,6 +23,7 @@ target_compile_definitions(bad_apple PRIVATE
DVI_VERTICAL_REPEAT=1
DVI_N_TMDS_BUFFERS=3
DVI_MONOCHROME_TMDS
DVI_1BPP_BIT_REVERSE=0
)
target_link_libraries(bad_apple

View file

@ -13,6 +13,7 @@ target_compile_definitions(dht_logging PRIVATE
DVI_DEFAULT_SERIAL_CONFIG=${DVI_DEFAULT_SERIAL_CONFIG}
DVI_VERTICAL_REPEAT=1
DVI_N_TMDS_BUFFERS=3
DVI_1BPP_BIT_REVERSE=0
)

View file

@ -11,6 +11,7 @@ target_compile_definitions(moon PRIVATE
DVI_VERTICAL_REPEAT=1
DVI_N_TMDS_BUFFERS=3
DVI_MONOCHROME_TMDS
DVI_1BPP_BIT_REVERSE=0
)
target_link_libraries(moon

View file

@ -14,6 +14,7 @@ target_compile_definitions(terminal PRIVATE
DVI_VERTICAL_REPEAT=1
DVI_N_TMDS_BUFFERS=3
DVI_MONOCHROME_TMDS=1
DVI_1BPP_BIT_REVERSE=0
)
target_link_libraries(terminal