Working Hello World example
This commit is contained in:
1
examples/CMakeLists.txt
Normal file
1
examples/CMakeLists.txt
Normal file
@@ -0,0 +1 @@
|
||||
add_subdirectory(vga_hello)
|
||||
@@ -9,8 +9,7 @@
|
||||
// Includes
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#include "../../global.h" // global common definitions
|
||||
#include "../vga.pio.h" // VGA PIO compilation
|
||||
#include "../../../global.h" // global common definitions
|
||||
|
||||
// main
|
||||
#include "main.h" // main code
|
||||
|
||||
16
examples/vga_hello/CMakeLists.txt
Normal file
16
examples/vga_hello/CMakeLists.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
add_executable(vga_hello
|
||||
src/main.cpp
|
||||
)
|
||||
|
||||
add_picovga(vga_hello)
|
||||
|
||||
# pull in common dependencies
|
||||
#target_link_libraries(vga_hello pico_stdlib)
|
||||
|
||||
# for vga_config.h include
|
||||
target_include_directories(vga_hello PRIVATE
|
||||
${CMAKE_CURRENT_LIST_DIR}/src
|
||||
)
|
||||
|
||||
# create map/bin/hex file etc.
|
||||
pico_add_extra_outputs(vga_hello)
|
||||
@@ -9,8 +9,7 @@
|
||||
// Includes
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#include "../../global.h" // global common definitions
|
||||
#include "../vga.pio.h" // VGA PIO compilation
|
||||
#include "../../../global.h" // global common definitions
|
||||
|
||||
// main
|
||||
#include "main.h" // main code
|
||||
|
||||
Reference in New Issue
Block a user