Browse Source

Removed code comments and aligned to guide

main v1.2.0
CorvusPrudens 2 years ago
parent
commit
f26a0ead83
  1. 10
      .vscode/c_cpp_properties.json
  2. 23
      Blink/main.cpp
  3. 0
      ci/build_libs.sh

10
.vscode/c_cpp_properties.json

@ -6,9 +6,8 @@
"compilerPath": "C:/Program Files/DaisyToolchain/bin/arm-none-eabi-gcc.exe", "compilerPath": "C:/Program Files/DaisyToolchain/bin/arm-none-eabi-gcc.exe",
"includePath": [ "includePath": [
"${workspaceFolder}/Blink/**", "${workspaceFolder}/Blink/**",
"${workspaceFolder}/NewProject/**", "${workspaceFolder}/libs/libDaisy/**",
"${workspaceFolder}/libs/libDaisy//**", "${workspaceFolder}/libs/DaisySP/**"
"${workspaceFolder}/libs/DaisySP//**"
], ],
"intelliSenseMode": "gcc-x64", "intelliSenseMode": "gcc-x64",
"cStandard": "c11", "cStandard": "c11",
@ -25,9 +24,8 @@
"compilerPath": "/usr/bin/arm-none-eabi-gcc", "compilerPath": "/usr/bin/arm-none-eabi-gcc",
"includePath": [ "includePath": [
"${workspaceFolder}/Blink/**", "${workspaceFolder}/Blink/**",
"${workspaceFolder}/NewProject/**", "${workspaceFolder}/libs/libDaisy/**",
"${workspaceFolder}/libs/libDaisy//**", "${workspaceFolder}/libs/DaisySP/**"
"${workspaceFolder}/libs/DaisySP//**"
], ],
"intelliSenseMode": "gcc-x64", "intelliSenseMode": "gcc-x64",
"cStandard": "c11", "cStandard": "c11",

23
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" #include "daisy_seed.h"
using namespace daisy; daisy::DaisySeed hardware;
DaisySeed hw; int main()
{
hardware.Init();
int main() {
hw.Init();
bool led_state = false; bool led_state = false;
while (1) {
/** Set the USR LED to the current state */ while (true)
hw.SetLed(led_state); {
/** Toggle the state from true/false, or vice versa */ hardware.SetLed(led_state);
led_state = !led_state; led_state = !led_state;
/** Delay for the specified number of milliseconds */ daisy::System::Delay(500);
System::Delay(500);
} }
} }

0
ci/build_libs.sh

Loading…
Cancel
Save