diff --git a/AlexaControlTest/.vscode/tasks.json b/AlexaControlTest/.vscode/tasks.json new file mode 100644 index 0000000..f6fcc3e --- /dev/null +++ b/AlexaControlTest/.vscode/tasks.json @@ -0,0 +1,13 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "PlatformIO", + "task": "Pre-Debug", + "problemMatcher": [ + "$platformio" + ], + "label": "PlatformIO: Build in debug mode" + } + ] +} \ No newline at end of file diff --git a/AlexaControlTest/platformio.ini b/AlexaControlTest/platformio.ini index 3a67b5d..941686b 100644 --- a/AlexaControlTest/platformio.ini +++ b/AlexaControlTest/platformio.ini @@ -14,4 +14,9 @@ board = esp32doit-devkit-v1 framework = arduino lib_deps = xose/FauxmoESP@^3.1.0 -monitor_speed = 115200 \ No newline at end of file +monitor_speed = 115200 + + +debug_tool = esp-prog +upload_protocol = esp-prog +debug_init_break = tbreak setup \ No newline at end of file diff --git a/BlinkiWithDebuggingWorking/platformio.ini b/BlinkiWithDebuggingWorking/platformio.ini index 35e67d2..dffc561 100644 --- a/BlinkiWithDebuggingWorking/platformio.ini +++ b/BlinkiWithDebuggingWorking/platformio.ini @@ -14,6 +14,8 @@ board = esp32doit-devkit-v1 framework = arduino ;upload_port = /dev/ttyUSB0 +monitor_speed = 115200 + debug_tool = esp-prog upload_protocol = esp-prog debug_init_break = tbreak setup \ No newline at end of file diff --git a/BlinkiWithDebuggingWorking/src/main.cpp b/BlinkiWithDebuggingWorking/src/main.cpp index d3441ca..047ddb3 100644 --- a/BlinkiWithDebuggingWorking/src/main.cpp +++ b/BlinkiWithDebuggingWorking/src/main.cpp @@ -4,12 +4,15 @@ void setup() { // put your setup code here, to run once: pinMode(LED_BUILTIN, OUTPUT); + Serial.begin(115200); + Serial.println("Hi from the setup function."); } int a = 1000; int b = 100; void loop() { + Serial.println(" - Loop"); // put your main code here, to run repeatedly: digitalWrite(LED_BUILTIN, HIGH); delay(a);