Browse Source

Adjusted code styling and added back top comment

main v1.3.0
CorvusPrudens 2 years ago
parent
commit
5e5bf03975
  1. 2
      .vscode/launch.json
  2. 11
      Blink/main.cpp

2
.vscode/launch.json

@ -19,7 +19,7 @@
"reset init", "reset init",
"gdb_breakpoint_override hard" "gdb_breakpoint_override hard"
], ],
"preLaunchTask": "Build Blink", "preLaunchTask": "Build",
"preRestartCommands": [ "preRestartCommands": [
"load", "load",
"enable breakpoint", "enable breakpoint",

11
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" #include "daisy_seed.h"
daisy::DaisySeed hardware; using namespace daisy;
DaisySeed hardware;
int main() int main()
{ {
@ -12,6 +19,6 @@ int main()
{ {
hardware.SetLed(led_state); hardware.SetLed(led_state);
led_state = !led_state; led_state = !led_state;
daisy::System::Delay(500); hardware.DelayMs(500);
} }
} }

Loading…
Cancel
Save