move GUI code and unit conversion coefficients to corresponding separate files
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ set(PICO_PSRAM_CS_PIN 47 CACHE STRING "GPIO used as Chip Select for PSRAM")
|
||||
set(PICO_PSRAM_SIZE_BYTES 8388608 CACHE STRING "PSRAM size in bytes")
|
||||
pico_sdk_init()
|
||||
|
||||
add_executable(program main.c st7789.c graphics.c graphics_fb.c utf8.c ds1302.c beep.c ss49e.c)
|
||||
add_executable(program main.c st7789.c gui.c graphics.c graphics_fb.c utf8.c ds1302.c beep.c ss49e.c)
|
||||
target_link_libraries(program pico_stdlib pico_bootrom pico_rand hardware_adc hardware_dma hardware_gpio hardware_pwm hardware_spi hardware_regs hardware_psram pico_stdio_usb pico_time pico_sync)
|
||||
#target_compile_definitions(program PRIVATE PICO_PSRAM_CS_PIN=${PICO_PSRAM_CS_PIN} PICO_PSRAM_SIZE_BYTES=${PICO_PSRAM_CS_PIN})
|
||||
target_compile_definitions(program PRIVATE PICO_PSRAM_CS_PIN=0 PICO_PSRAM_SIZE_BYTES=8388608)
|
||||
|
||||
Reference in New Issue
Block a user