From 5e5bf0397505dbd4a0c5453620ece88c28d56546 Mon Sep 17 00:00:00 2001 From: CorvusPrudens Date: Mon, 24 Apr 2023 17:05:26 -0600 Subject: [PATCH] Adjusted code styling and added back top comment --- .vscode/launch.json | 2 +- Blink/main.cpp | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) 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); } }