Removing "timing" build, cleanup ini file
This commit is contained in:
@@ -13,7 +13,7 @@ main_mcu:
|
|||||||
script:
|
script:
|
||||||
- cd firmware/main_mcu/
|
- cd firmware/main_mcu/
|
||||||
- cp src/config-example.h src/config.h
|
- cp src/config-example.h src/config.h
|
||||||
- pio run -e button-debug -e button-release -e button-debug -e button-timing
|
- pio run -e release -e debug
|
||||||
# Manually install native platform due to:
|
# Manually install native platform due to:
|
||||||
# https://github.com/platformio/platformio-core/issues/3901
|
# https://github.com/platformio/platformio-core/issues/3901
|
||||||
- pio platform install native
|
- pio platform install native
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ src_filter =
|
|||||||
-<tests/>
|
-<tests/>
|
||||||
-<src/config-example.h>
|
-<src/config-example.h>
|
||||||
|
|
||||||
[env:button-release]
|
[hardware]
|
||||||
platform = espressif8266
|
platform = espressif8266
|
||||||
framework = arduino
|
framework = arduino
|
||||||
board = esp12e
|
board = esp12e
|
||||||
@@ -30,28 +30,11 @@ lib_deps =
|
|||||||
hieromon/AutoConnect@^1.2.2
|
hieromon/AutoConnect@^1.2.2
|
||||||
upload_speed = 115200
|
upload_speed = 115200
|
||||||
|
|
||||||
[env:button-timing]
|
[env:release]
|
||||||
platform = espressif8266
|
extends = hardware
|
||||||
framework = arduino
|
|
||||||
board = esp12e
|
|
||||||
lib_ldf_mode = deep+ ;; Required for Platformio to identify some transitive dependencies of AutoConnect
|
|
||||||
lib_deps =
|
|
||||||
knolleary/PubSubClient@^2.8.0
|
|
||||||
bblanchon/ArduinoJson@^6.17.2
|
|
||||||
hieromon/AutoConnect@^1.2.2
|
|
||||||
upload_speed = 115200
|
|
||||||
build_flags = -D DEBUG_SKETCH_TIMING
|
|
||||||
|
|
||||||
[env:button-debug]
|
[env:debug]
|
||||||
platform = espressif8266
|
extends = hardware
|
||||||
framework = arduino
|
|
||||||
board = esp12e
|
|
||||||
lib_ldf_mode = deep+ ;; Required for Platformio to identify some transitive dependencies of AutoConnect
|
|
||||||
lib_deps =
|
|
||||||
knolleary/PubSubClient@^2.8.0
|
|
||||||
bblanchon/ArduinoJson@^6.17.2
|
|
||||||
hieromon/AutoConnect@^1.2.2
|
|
||||||
upload_speed = 115200
|
|
||||||
build_flags = -D DEBUG_SKETCH
|
build_flags = -D DEBUG_SKETCH
|
||||||
|
|
||||||
[env:native]
|
[env:native]
|
||||||
|
|||||||
@@ -79,16 +79,11 @@ void setup() {
|
|||||||
// Sample the input button ASAP.
|
// Sample the input button ASAP.
|
||||||
// pinMode(BTN_PIN, INPUT);
|
// pinMode(BTN_PIN, INPUT);
|
||||||
// bool btn_value = digitalRead(BTN_PIN);
|
// bool btn_value = digitalRead(BTN_PIN);
|
||||||
|
|
||||||
#if defined(DEBUG_SKETCH_TIMING)
|
|
||||||
unsigned long startTimingMillis = millis();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
pinMode(RED_LED_PIN, OUTPUT);
|
pinMode(RED_LED_PIN, OUTPUT);
|
||||||
pinMode(BLUE_LED_PIN, OUTPUT);
|
pinMode(BLUE_LED_PIN, OUTPUT);
|
||||||
pinMode(GREEN_LED_PIN, OUTPUT);
|
pinMode(GREEN_LED_PIN, OUTPUT);
|
||||||
|
|
||||||
#if defined(DEBUG_SKETCH) || defined(DEBUG_SKETCH_TIMING)
|
#if defined(DEBUG_SKETCH)
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -104,10 +99,6 @@ void setup() {
|
|||||||
|
|
||||||
// We've done our work- back to sleep.
|
// We've done our work- back to sleep.
|
||||||
PRINT("Going to sleep...\n");
|
PRINT("Going to sleep...\n");
|
||||||
#if defined(DEBUG_SKETCH_TIMING)
|
|
||||||
unsigned long endTimeMillis = millis();
|
|
||||||
Serial.print("Ran for " + String(endTimeMillis - startTimingMillis) + " milliseconds\n");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Drain all of our pending requests
|
// Drain all of our pending requests
|
||||||
mqttClient.disconnect();
|
mqttClient.disconnect();
|
||||||
|
|||||||
Reference in New Issue
Block a user