diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..3c44241 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.vscode/arduino.json b/.vscode/arduino.json new file mode 100644 index 0000000..bf33024 --- /dev/null +++ b/.vscode/arduino.json @@ -0,0 +1,3 @@ +{ + "board": "arduino:avr:leonardo" +} \ No newline at end of file diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index b5ed78e..81b45d3 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -3,6 +3,8 @@ { "name": "Mac", "includePath": [ + "/Applications/Arduino.app/Contents/Java/tools/**", + "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/**", "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/include", "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino", "${workspaceRoot}" @@ -20,6 +22,9 @@ "macFrameworkPath": [ "/System/Library/Frameworks", "/Library/Frameworks" + ], + "forcedInclude": [ + "/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h" ] }, { @@ -55,5 +60,5 @@ "intelliSenseMode": "msvc-x64" } ], - "version": 3 -} + "version": 4 +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index b305399..73c61a5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,6 @@ -// Place your settings in this file to overwrite default and user settings. { - "cmake.experimental.enableTargetDebugging": true -} + "files.associations": { + "cstddef": "cpp", + "ostream": "cpp" + } +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..7992b3d --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,28 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Build", + "command": "make", + "args": ["all"], + "options": { + "cwd": "${workspaceRoot}/build" + }, + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "Run Tests", + "command": "${workspaceRoot}/build/test/unit-tests/unit-tests", + "group": { + "kind": "test", + "isDefault": true + }, + "dependsOn": ["Build"] + } + ] +}