Skip to content

Commit

Permalink
feed the dog
Browse files Browse the repository at this point in the history
  • Loading branch information
sblantipodi committed Jan 3, 2023
1 parent b8ff382 commit da8aad7
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CMakeListsUser.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
add_custom_target(
LIBS_UPDATE
COMMAND platformio lib update
COMMAND pio pkg update
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

Expand Down
4 changes: 2 additions & 2 deletions include/Version.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

// AUTO GENERATED FILE, DO NOT EDIT
#ifndef VERSION
#define VERSION "2.16.12"
#define VERSION "2.16.18"
#endif
#ifndef BUILD_TIMESTAMP
#define BUILD_TIMESTAMP "2022-08-28 14:05:48.082634"
#define BUILD_TIMESTAMP "2023-01-03 11:24:09.041019"
#endif

12 changes: 6 additions & 6 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ monitor_filters = esp8266_exception_decoder, colorize
extra_scripts =
pre:platformio_version_increment/version_increment_pre.py
post:platformio_version_increment/version_increment_post.py
lib_deps =
ArduinoJson
PubSubClient
Adafruit GFX Library
Adafruit BusIO
Adafruit SSD1306
lib_deps =
bblanchon/ArduinoJson
knolleary/PubSubClient
adafruit/Adafruit GFX Library
adafruit/Adafruit BusIO
adafruit/Adafruit SSD1306
lib_extra_dirs = arduino_bootstrapper
common_build_flags =
'-D AUTHOR="DPsoftware"'
Expand Down
14 changes: 12 additions & 2 deletions src/Watchwinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,16 @@ void setup() {
Serial.println(F("SSD1306 allocation failed"));
for(;;); // Don't proceed, loop forever
}
ESP.wdtFeed();

display.setTextColor(WHITE);

// Bootsrap setup() with Wifi and MQTT functions
bootstrapManager.bootstrapSetup(manageDisconnections, manageHardwareButton, callback);
ESP.wdtFeed();

readConfigFromStorage();
ESP.wdtFeed();

}

Expand Down Expand Up @@ -575,13 +578,16 @@ void loop() {

// Bootsrap loop() with Wifi, MQTT and OTA functions
bootstrapManager.bootstrapLoop(manageDisconnections, manageQueueSubscription, manageHardwareButton);
ESP.wdtFeed();

// Send status on MQTT Broker every n seconds
delayAndSendStatus();

ESP.wdtFeed();

// Trigger screensaver every 5 minutes
triggerScreenSaverAfterFiveMinutes();

ESP.wdtFeed();

// Write SPIFFS every minute, saves the numbers of rotation.
if (stepperMotorOn == true) {
writeConfigToStorageAfterMinute();
Expand All @@ -591,6 +597,7 @@ void loop() {
pingESP.ping(WiFi.gatewayIP());
}
}
ESP.wdtFeed();

// Shut down stepper motor if numbers of daily rotation has been reached
if (numbersOfRotationDone > rotationNumber) {
Expand All @@ -609,6 +616,7 @@ void loop() {
} else if (showLastPage) {
drawOrShutDownDisplay();
}
ESP.wdtFeed();

// Manage Stepper Motor every two seconds
if (stepperMotorOn) {
Expand All @@ -623,7 +631,9 @@ void loop() {
display.display();
}
}
ESP.wdtFeed();

bootstrapManager.nonBlokingBlink();
ESP.wdtFeed();

}
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.16.12
2.16.18

0 comments on commit da8aad7

Please sign in to comment.