Working Hello World example

This commit is contained in:
Wayne Venables
2023-02-24 23:36:35 -08:00
parent 49a948cdfc
commit 04457da9fb
8 changed files with 119 additions and 105 deletions

1
examples/CMakeLists.txt Normal file
View File

@@ -0,0 +1 @@
add_subdirectory(vga_hello)

View File

@@ -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

View 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)

View File

@@ -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