From d7a294943094c4200a922ab1a616e27f842b96a7 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Thu, 29 Nov 2018 17:41:14 +0100 Subject: [PATCH] inital arduino file --- .vscode/arduino.json | 6 ++++++ .vscode/c_cpp_properties.json | 20 ++++++++++++++++++++ Neopixel_LIS3DH.ino | 17 +++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 .vscode/arduino.json create mode 100644 .vscode/c_cpp_properties.json create mode 100644 Neopixel_LIS3DH.ino diff --git a/.vscode/arduino.json b/.vscode/arduino.json new file mode 100644 index 0000000..0300f12 --- /dev/null +++ b/.vscode/arduino.json @@ -0,0 +1,6 @@ +{ + "board": "arduino:avr:nano", + "configuration": "cpu=atmega328", + "port": "/dev/cu.usbserial-30", + "sketch": "Neopixel_LIS3DH.ino" +} \ No newline at end of file diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..21b3f42 --- /dev/null +++ b/.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 +} \ No newline at end of file diff --git a/Neopixel_LIS3DH.ino b/Neopixel_LIS3DH.ino new file mode 100644 index 0000000..47f1edd --- /dev/null +++ b/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); +} \ No newline at end of file