inital arduino file

This commit is contained in:
Jannik Beyerstedt 2018-11-29 17:41:14 +01:00
parent b4199b9ec8
commit d7a2949430
3 changed files with 43 additions and 0 deletions

6
.vscode/arduino.json vendored Normal file
View File

@ -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 vendored Normal file
View File

@ -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 Normal file
View File

@ -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);
}