From cbdc29724e08e8f6d87e735c19834a7f59c392fe Mon Sep 17 00:00:00 2001 From: Emanuele Trabattoni Date: Sun, 16 May 2021 14:24:45 +0200 Subject: [PATCH] compiles and run example --- .vscode/.cortex-debug.peripherals.state.json | 1 + .vscode/.cortex-debug.registers.state.json | 1 + README.md | 2 ++ src/CMakeLists.txt | 4 ++++ 4 files changed, 8 insertions(+) create mode 100644 .vscode/.cortex-debug.peripherals.state.json create mode 100644 .vscode/.cortex-debug.registers.state.json diff --git a/.vscode/.cortex-debug.peripherals.state.json b/.vscode/.cortex-debug.peripherals.state.json new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/.vscode/.cortex-debug.peripherals.state.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/.vscode/.cortex-debug.registers.state.json b/.vscode/.cortex-debug.registers.state.json new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/.vscode/.cortex-debug.registers.state.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/README.md b/README.md index 71c5686..1b0dacb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # EnergyMonitor_Pico +Newer version of Energy Monitor with RPi Pico 2040 microcontroller & e-Paper display + diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3fb21f6..bc6dda7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -4,5 +4,9 @@ add_executable(emon main.cpp) # Pull in our pico_stdlib which aggregates commonly used features target_link_libraries(emon pico_stdlib) +# enable usb output, disable uart output +pico_enable_stdio_usb(emon 1) +pico_enable_stdio_uart(emon 0) + # create map/bin/hex/uf2 file etc. pico_add_extra_outputs(emon)