From cd8a78ea6ea452e20d5a7d65c3524c5f212d7a55 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Mon, 27 Mar 2017 19:34:56 +0200 Subject: [PATCH 1/8] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8a2eed0..3cda87e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,4 +6,4 @@ build: - platformio run artifacts: paths: - - "*.bin" + - "/pioenvs/esp32thing/*.bin" From 273502950a9e1ba35de90415966dcacd4595e657 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Mon, 27 Mar 2017 19:37:33 +0200 Subject: [PATCH 2/8] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3cda87e..6ad6142 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,4 +6,4 @@ build: - platformio run artifacts: paths: - - "/pioenvs/esp32thing/*.bin" + - ".pioenvs/esp32thing/*.bin" From 6590f76117b164274d0e6a6c867345fe0aa24443 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Wed, 29 Mar 2017 21:51:50 +0200 Subject: [PATCH 3/8] change LED pin --- src/main.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b87a9e5..90d54ba 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -8,26 +8,24 @@ */ #include "Arduino.h" -#ifndef LED_BUILTIN -#define LED_BUILTIN 13 -#endif +#define LED_PIN 5 void setup() { // initialize LED digital pin as an output. - pinMode(LED_BUILTIN, OUTPUT); + pinMode(LED_PIN, OUTPUT); } void loop() { // turn the LED on (HIGH is the voltage level) - digitalWrite(LED_BUILTIN, HIGH); + digitalWrite(LED_PIN, HIGH); // wait for a second delay(1000); // turn the LED off by making the voltage LOW - digitalWrite(LED_BUILTIN, LOW); + digitalWrite(LED_PIN, LOW); // wait for a second delay(1000); From 7999ac7b0d34df807d620c4dc443078ff98d7689 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Wed, 29 Mar 2017 21:55:27 +0200 Subject: [PATCH 4/8] test --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6ad6142..f5fcc85 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,7 @@ build: # - platformio lib -g install 1 # - platformio ci --board=esp32thing - platformio run + - platformio run -t upload artifacts: paths: - ".pioenvs/esp32thing/*.bin" From 11f4b44642ed8b8132b38b2633260a9eac35f9d1 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Wed, 29 Mar 2017 21:57:54 +0200 Subject: [PATCH 5/8] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f5fcc85..e80f5bc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ build: # - platformio lib -g install 1 # - platformio ci --board=esp32thing - platformio run - - platformio run -t upload + - platformio run -v -t upload artifacts: paths: - ".pioenvs/esp32thing/*.bin" From dd7813f0865f39be702158ccddac675a76be911f Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Wed, 29 Mar 2017 21:59:56 +0200 Subject: [PATCH 6/8] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e80f5bc..715cedd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ build: # - platformio lib -g install 1 # - platformio ci --board=esp32thing - platformio run - - platformio run -v -t upload + - platformio run -v -t upload --upload-port /dev/null artifacts: paths: - ".pioenvs/esp32thing/*.bin" From 21003eaa45176a1f4a7b86c750bbb8c46313efd8 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Wed, 29 Mar 2017 22:04:35 +0200 Subject: [PATCH 7/8] Update .gitlab-ci.yml --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 715cedd..81af343 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,9 @@ build: # - platformio lib -g install 1 # - platformio ci --board=esp32thing - platformio run - - platformio run -v -t upload --upload-port /dev/null +# to flash: esptool.py --before default_reset --after hard_reset --chip esp32 --port "/dev/ttyUSB0" --baud 115200 write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 "/home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader.bin" 0x8000 ".pioenvs/esp32thing/partitions.bin" 0xe000 "/home/user/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin" 0x10000 .pioenvs/esp32thing/firmware.bin artifacts: paths: - ".pioenvs/esp32thing/*.bin" + - "/home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader.bin" + - "/home/user/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin" \ No newline at end of file From b3014420eceafe5af0e93c589ffbc123f4ed2cee Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Wed, 29 Mar 2017 22:07:00 +0200 Subject: [PATCH 8/8] Update .gitlab-ci.yml --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 81af343..2c4899d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,9 +4,9 @@ build: # - platformio lib -g install 1 # - platformio ci --board=esp32thing - platformio run + - cp /home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader.bin .pioenvs/esp32thing/ + - cp /home/user/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin .pioenvs/esp32thing/ # to flash: esptool.py --before default_reset --after hard_reset --chip esp32 --port "/dev/ttyUSB0" --baud 115200 write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 "/home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader.bin" 0x8000 ".pioenvs/esp32thing/partitions.bin" 0xe000 "/home/user/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin" 0x10000 .pioenvs/esp32thing/firmware.bin artifacts: paths: - - ".pioenvs/esp32thing/*.bin" - - "/home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader.bin" - - "/home/user/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin" \ No newline at end of file + - ".pioenvs/esp32thing/*.bin" \ No newline at end of file