Comments (1)
Seems like the linker just wants to add everything into the flash. Now I just made a link to the csrc folder and added the files in my CMakeLists.txt and it compiles fine. Now the programs are reduce to something like 50+ kbytes
My CMakeLists.xt
`# @file CmakeLists.txt
@brief used to generate the correct makefiles including ucglib
@author Nico Verduin
@Date 22-2-2023
if we use ucglib update the variable below with correct path
set (UCGLIB "../ucglib/csrc/")
give the project the root folder name
cmake_path(GET CMAKE_CURRENT_SOURCE_DIR FILENAME PROJECT_NAME)
string(REPLACE " " "_" ProjectId ${PROJECT_NAME})
project(${PROJECT_NAME})
let's get all the sources
set(PROJECT_SOURCE_DIRS "*.c *.h")
if we use UCG lib add its folders as well
if (DEFINED UCGLIB)
# add UCGLIB sources
set(PROJECT_SOURCE_DIRS ${PROJECT_SOURCE_DIRS} ${UCGLIB}.c ${UCGLIB}.h)
# search in folder
include_directories(${UCGLIB})
endif()
get all the sources and includes from current project dir and UCGLIB
file(GLOB PROJECT_SRC CONFIGURE_DEPENDS ${PROJECT_SOURCE_DIRS})
set dependencies for our firmware
add_executable(${PROJECT_NAME}
main.c
${PROJECT_SRC}
)
enable usb output, disable uart output
pico_enable_stdio_usb(${PROJECT_NAME} 1)
pico_enable_stdio_uart(${PROJECT_NAME} 0)
pull in common dependencies and additional spi hardware support
target_link_libraries(${PROJECT_NAME} pico_stdlib hardware_spi hardware_gpio)
create map/bin/hex file etc.
pico_add_extra_outputs(${PROJECT_NAME})
add url via pico_set_program_url
example_auto_set_url(${PROJECT_NAME})
`
from ucglib.
Related Issues (20)
- ST3375 only shows backlight on Arduino Mega HOT 3
- setColor with predefined colours ? HOT 1
- Demo project: Example for Nordic Semiconductor nRF52
- ESP32 2nd HW SPI busses
- ILI9342 driver HOT 7
- Font Rendering Issue HOT 1
- drawFrame/drawRFrame draws vertical lines in wrong position
- '__NOP' was not declared in this scope HOT 1
- 12x128 ili9163 without pixel offset
- SSD1351 96x96
- Is this still supported?
- Ucglib.cpp:834:3: error: '__NOP' was not declared
- Some question about clearScreen function. HOT 1
- lower res ST7735?
- __NOP problem when using with stm32duino and platformio HOT 1
- clearScreen() not clearing entire screen
- Is there by any chance any support for elecrow ESP32 7" Display ?
- Cannot download font converter from Google drive
- ucglib using custom font maps issues.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ucglib.