diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index 98df40f..10999a3 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -6,9 +6,8 @@ "compilerPath": "C:/Program Files/DaisyToolchain/bin/arm-none-eabi-gcc.exe", "includePath": [ "${workspaceFolder}/Blink/**", - "${workspaceFolder}/NewProject/**", - "${workspaceFolder}/libs/libDaisy//**", - "${workspaceFolder}/libs/DaisySP//**" + "${workspaceFolder}/libs/libDaisy/**", + "${workspaceFolder}/libs/DaisySP/**" ], "intelliSenseMode": "gcc-x64", "cStandard": "c11", @@ -18,16 +17,15 @@ "STM32H750xx" ], "windowsSdkVersion": "10.0.17763.0" - }, + }, { "name": "Mac", // Edit to match your development environment if necessary "compilerPath": "/usr/bin/arm-none-eabi-gcc", "includePath": [ "${workspaceFolder}/Blink/**", - "${workspaceFolder}/NewProject/**", - "${workspaceFolder}/libs/libDaisy//**", - "${workspaceFolder}/libs/DaisySP//**" + "${workspaceFolder}/libs/libDaisy/**", + "${workspaceFolder}/libs/DaisySP/**" ], "intelliSenseMode": "gcc-x64", "cStandard": "c11", @@ -39,4 +37,4 @@ } ], "version": 4 -} \ No newline at end of file +} diff --git a/Blink/main.cpp b/Blink/main.cpp index 0e08a01..4daed0a 100644 --- a/Blink/main.cpp +++ b/Blink/main.cpp @@ -1,22 +1,17 @@ -/** Basic Daisy Blink Example - * - * This example blinks toggles the state of an LED every half a second. - */ #include "daisy_seed.h" -using namespace daisy; +daisy::DaisySeed hardware; -DaisySeed hw; +int main() +{ + hardware.Init(); -int main() { - hw.Init(); - bool led_state = false; - while (1) { - /** Set the USR LED to the current state */ - hw.SetLed(led_state); - /** Toggle the state from true/false, or vice versa */ - led_state = !led_state; - /** Delay for the specified number of milliseconds */ - System::Delay(500); - } + bool led_state = false; + + while (true) + { + hardware.SetLed(led_state); + led_state = !led_state; + daisy::System::Delay(500); + } } diff --git a/ci/build_libs.sh b/ci/build_libs.sh old mode 100644 new mode 100755