Set up scheduled program cycles #24

Merged
W1CDN merged 41 commits from program-cycle into main 2023-09-15 16:51:45 -05:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit 5c655a381b - Show all commits

View File

@ -17,6 +17,8 @@ board = esp32doit-devkit-v1
framework = arduino framework = arduino
upload_speed = 921600 upload_speed = 921600
monitor_speed = 115200 monitor_speed = 115200
monitor_filters = esp32_exception_decoder
build_type = debug
lib_deps = lib_deps =
me-no-dev/AsyncTCP@^1.1.1 me-no-dev/AsyncTCP@^1.1.1
me-no-dev/ESP Async WebServer@^1.2.3 me-no-dev/ESP Async WebServer@^1.2.3
@ -27,4 +29,4 @@ lib_deps =
https://github.com/adafruit/RTClib.git ; >=2.1.2 https://github.com/adafruit/RTClib.git ; >=2.1.2
adafruit/Adafruit BusIO@^1.14.3 adafruit/Adafruit BusIO@^1.14.3
;jchristensen/DS3232RTC@^2.0.1 ;jchristensen/DS3232RTC@^2.0.1
monitor_filters = esp32_exception_decoder

View File

@ -345,11 +345,11 @@ JLedSequence* make_sequence(JLedSequence* seq, const char* message, int wpm, int
int repeats = 2;//step_length / period; int repeats = 2;//step_length / period;
int remainder_wait = step_length - (period * repeats); int remainder_wait = step_length - (period * repeats);
int total_wait = ((step_length * (n_transmitters - 1) + remainder_wait)); int total_wait = ((step_length * (n_transmitters - 1) + remainder_wait));
Serial.print("total_wait: "); Serial.println(total_wait);
JLed morses_blink[] = { JLed morses_blink[] = {
JLed(blinker).UserFunc(&morse_effect).Repeat(repeats).DelayAfter(word_space_ms), JLed(blinker).UserFunc(&morse_effect).Repeat(repeats).DelayAfter(word_space_ms),
JLed(blinker).Off(total_wait) JLed(blinker).Off(total_wait)
}; };
if (seq){ if (seq){
delete seq; delete seq;
//seq = new JLedSequence(JLedSequence::eMode::SEQUENCE, leds); //seq = new JLedSequence(JLedSequence::eMode::SEQUENCE, leds);
@ -610,7 +610,7 @@ void loop() {
// Timers // Timers
timer.tick(); timer.tick();
//morses_sequence_blink_test->Forever().Update(); morses_sequence_blink_test->Forever().Update();
// See which message we are sending // See which message we are sending
// Only do this when the message has been updated. // Only do this when the message has been updated.