Browse Source

inital arduino file

master
Jannik Beyerstedt 2 years ago
parent
commit
d7a2949430
3 changed files with 43 additions and 0 deletions
  1. 6
      .vscode/arduino.json
  2. 20
      .vscode/c_cpp_properties.json
  3. 17
      Neopixel_LIS3DH.ino

6
.vscode/arduino.json

@ -0,0 +1,6 @@
{
"board": "arduino:avr:nano",
"configuration": "cpu=atmega328",
"port": "/dev/cu.usbserial-30",
"sketch": "Neopixel_LIS3DH.ino"
}

20
.vscode/c_cpp_properties.json

@ -0,0 +1,20 @@
{
"configurations": [
{
"name": "Mac",
"includePath": [
"/Users/jannik/Library/Arduino15/packages/arduino/hardware/avr/1.6.21/**"
],
"forcedInclude": [],
"macFrameworkPath": [
"/System/Library/Frameworks",
"/Library/Frameworks"
],
"intelliSenseMode": "clang-x64",
"compilerPath": "/usr/bin/clang",
"cStandard": "c11",
"cppStandard": "c++17"
}
],
"version": 4
}

17
Neopixel_LIS3DH.ino

@ -0,0 +1,17 @@
/*
* Blinky, Colorful Neopixel (WS2812) LED Stip Controlled by Motion Sensor (LIS3DH)
*
* copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de | code@jannikbeyerstedt.de
* license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
*/
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
}
Loading…
Cancel
Save