Sigh. RTC is off on reset. That's no good.
RTC time on startup: 2023-09-09T18:28:48
Alarm 1 set for at 23:58:00 Tue, 09 May 2000 (only HH:MM:SS day-of-month are accurate)
Maybe this could be a function?
if(startProgram == true){
//auto morse_cycle = morseEffectMOS;
int period = morse_cycle.Period();
int repeats = step_length / period;
int…
- test power cycle between when start time is set and start time is reached. Does it work the way it should? It should start the program at the scheduled time with no input from the webform.
So close. Trying to let the user change the cycle message and running to problems.
Things like morse_cycle = morseEffectMOE; just don't work.
My use of "cycle" and "program" are very confused right now, but making progress.
This is basically working. Observations:
- message and timing are hardcoded for now
- need to update in loop, based on webform entry
- no gap between end of message repeat and beginning of…
I am debugging this in Sites/jled/ and there may be a bug with using DelayAfter() in a sequence: https://github.com/jandelgado/jled/issues/122.
Very simple example working. To get it going:
- set a different message than 0, save
- set message to 0 and start continuous, save
The message should send once, but really it is limited to…
Oh wow, you can get the duration of the Morse effect with Serial.println(morseEffectMO5.Period()); or similar.
This will let me calculate how many repeats fit into each step length.
Then…
GTK (https://github.com/jandelgado/jled/issues/11#issuecomment-429887353):
There is no need to redefine the object each time. Just call the variable with the new parameters.
ex:…
Neat but not what I'm looking for: https://github.com/tfeldmann/Arduino-Blinkenlight.
Another example (https://github.com/jandelgado/jled/issues/34):
#include <Arduino.h>
#include<jled.h>
// blink internal LED every second; 1 second on, 0.5 second off.
auto led =…
So close to being able to use Jled sequences natively, if I could figure out how to calculate the number of times to repeat for a given step length.
This looks helpful (https://arduino.stackex…
To send a cycle, we need to set up the duration of each repeating message.
- Need entries (#8) for
- step length
- cycle ID
- number of transmitters
- Need a function…
I thought I had typed this all out, but
- Alarm2 has only minute resolution
- Alarm1 has second resolution
So when I set up Alarm2 but turn off cycle, if I turned cycle back on within the…