mirror of
https://github.com/ravinrabbid/DonCon2040.git
synced 2024-11-20 03:37:07 +01:00
381d91e7bc
The external ADC will constantly convert, reading will give the maximum value since the last read. This should avoid missing any peaks. The internal ADC will now only do one conversion upon read, consider it abandoned for now.
11 lines
297 B
CMake
11 lines
297 B
CMake
file(GLOB mcp3204_SOURCES src/*.cpp)
|
|
|
|
add_library(mcp3204 STATIC ${mcp3204_SOURCES})
|
|
|
|
target_include_directories(
|
|
mcp3204
|
|
PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include
|
|
PRIVATE ${CMAKE_CURRENT_LIST_DIR}/include/mcp3204)
|
|
|
|
target_link_libraries(mcp3204 PUBLIC pico_stdlib hardware_spi hardware_dma)
|