From a8cc43dae1d9d17eec7c5cd3dcf12b296a7bf07b Mon Sep 17 00:00:00 2001 From: Mathieu CArbou Date: Sat, 31 Aug 2024 20:49:34 +0000 Subject: [PATCH] try gitpod... --- .gitpod.Dockerfile | 2 + .gitpod.yml | 9 +++ .vscode/settings.json | 144 +++++++++++++++++++++--------------------- 3 files changed, 83 insertions(+), 72 deletions(-) create mode 100644 .gitpod.Dockerfile create mode 100644 .gitpod.yml diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 0000000..29eeb43 --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,2 @@ +FROM gitpod/workspace-python-3.11 +USER gitpod diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..29092a3 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,9 @@ +tasks: + - command: pip install --upgrade pip && pip install -U platformio && platformio run -t clean -e arduino-3 + +image: + file: .gitpod.Dockerfile + +vscode: + extensions: + - shardulm94.trailing-spaces diff --git a/.vscode/settings.json b/.vscode/settings.json index 83b1f16..1e48fc2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,74 +1,74 @@ { - "C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: LLVM, UseTab: Never, IndentWidth: 2, TabWidth: 2, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: true, ColumnLimit: 0, AccessModifierOffset: -2, NamespaceIndentation: All, FixNamespaceComments: false, IndentAccessModifiers: true, PointerAlignment: Left, ReferenceAlignment: Left, ContinuationIndentWidth: 2}", - "files.exclude": { - "**/.lh": true - }, - "cSpell.words": [ - "YASOLR" - ], - "cmake.configureOnOpen": false, - "files.associations": { - "*.cps": "javascript", - "*.config": "cpp", - "compare": "cpp", - "*.tcc": "cpp", - "deque": "cpp", - "vector": "cpp", - "array": "cpp", - "atomic": "cpp", - "bit": "cpp", - "bitset": "cpp", - "cctype": "cpp", - "chrono": "cpp", - "clocale": "cpp", - "cmath": "cpp", - "concepts": "cpp", - "condition_variable": "cpp", - "cstdarg": "cpp", - "cstddef": "cpp", - "cstdint": "cpp", - "cstdio": "cpp", - "cstdlib": "cpp", - "cstring": "cpp", - "ctime": "cpp", - "cwchar": "cpp", - "cwctype": "cpp", - "list": "cpp", - "map": "cpp", - "set": "cpp", - "unordered_map": "cpp", - "exception": "cpp", - "algorithm": "cpp", - "functional": "cpp", - "iterator": "cpp", - "memory": "cpp", - "memory_resource": "cpp", - "numeric": "cpp", - "optional": "cpp", - "random": "cpp", - "ratio": "cpp", - "regex": "cpp", - "string": "cpp", - "string_view": "cpp", - "system_error": "cpp", - "tuple": "cpp", - "type_traits": "cpp", - "utility": "cpp", - "initializer_list": "cpp", - "iosfwd": "cpp", - "istream": "cpp", - "limits": "cpp", - "mutex": "cpp", - "new": "cpp", - "ostream": "cpp", - "ranges": "cpp", - "sstream": "cpp", - "stdexcept": "cpp", - "stop_token": "cpp", - "streambuf": "cpp", - "thread": "cpp", - "cinttypes": "cpp", - "typeinfo": "cpp", - "variant": "cpp" - } + "platformio-ide.toolbar": [ + { + "text": "$(home)", + "tooltip": "PlatformIO: Home", + "commands": "platformio-ide.showHome" + }, + { + "text": "$(trash)", + "tooltip": "PlatformIO: Clean", + "commands": "platformio-ide.clean" + }, + { + "text": "$(check)", + "tooltip": "PlatformIO: Build", + "commands": "platformio-ide.build" + }, + { + "text": "Upload", + "tooltip": "PlatformIO: Flash firmware (NO build run)", + "commands": [ + { + "id": "platformio-ide.runPIOCoreCommand", + "args": "pio run -t nobuild -t factory_flash -e ${command:platformio-ide.activeEnvironment}" + } + ] + }, + { + "text": "$(zap)", + "tooltip": "PlatformIO: Build and Upload", + "commands": "platformio-ide.upload" + }, + { + "text": "$(flame)", + "tooltip": "PlatformIO: Build, Erase and Upload", + "commands": [ + { + "id": "platformio-ide.runPIOCoreCommand", + "args": "pio run -t erase_upload -e ${command:platformio-ide.activeEnvironment}" + } + ] + }, + { + "text": "$(error)", + "tooltip": "PlatformIO: Erase Flash", + "commands": [ + { + "id": "platformio-ide.runPIOCoreCommand", + "args": "pio run -t nobuild -t erase -e ${command:platformio-ide.activeEnvironment}" + } + ] + }, + { + "text": "$(arrow-right)", + "tooltip": "PlatformIO: Build, Upload and Monitor", + "commands": "platformio-ide.uploadAndMonitor" + }, + { + "text": "$(device-desktop)", + "tooltip": "PlatformIO: Serial Monitor", + "commands": "platformio-ide.serialMonitor" + }, + { + "text": "$(terminal)", + "tooltip": "PlatformIO: New Terminal", + "commands": "platformio-ide.newTerminal" + }, + { + "text": "$(refresh)", + "tooltip": "PlatformIO: Rebuild IntelliSense Index", + "commands": "platformio-ide.rebuildProjectIndex" + } + ] } \ No newline at end of file