diff --git a/.vscode/launch.json b/.vscode/launch.json index 18e7662..a1063f6 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -19,7 +19,7 @@ "reset init", "gdb_breakpoint_override hard" ], - "preLaunchTask": "Build Blink", + "preLaunchTask": "Build", "preRestartCommands": [ "load", "enable breakpoint", diff --git a/Blink/main.cpp b/Blink/main.cpp index 4daed0a..a842c8d 100644 --- a/Blink/main.cpp +++ b/Blink/main.cpp @@ -1,6 +1,13 @@ +/** Daisy Blink Example + * + * This example blinks the Daisy Seed's LED + * once per second, as explained in the + * C++ Getting Started guide for the Daisy. +*/ #include "daisy_seed.h" -daisy::DaisySeed hardware; +using namespace daisy; +DaisySeed hardware; int main() { @@ -12,6 +19,6 @@ int main() { hardware.SetLed(led_state); led_state = !led_state; - daisy::System::Delay(500); + hardware.DelayMs(500); } }