So cool. I wouldn't understand this if not for all the time with Jled, but it's a lot more nimble.
I did it without getting the duration, using millis(). It seems to start/end 1 second slow, though. Will figure that out next.
This has the bonus effect of sending right up until the end of…
I can start on schedule and run forever, then stop by switching the program to off. Seems like a good place to stop.
Repeating n times seems like a for or while loop.
Waiting the right…
I think Jled and arduinomorse were fighting for the gpio. I commented all the Jled stuff out and at least got one message out on startup.
Hmm.
morses_sequence_blink_test->Forever().Update();
Backtrace: 0x400d1c32:0x3ffb1f40 0x400e2799:0x3ffb1fb0 0x4008a39a:0x3ffb1fd0
#0 0x400d1c32:0x3ffb1f40 in jled::TJLedSequence<jl…
Lol, if I comment out the division, I can at least run the function.
int ms_per_dit = 60;//1000 * (60 / (50 * wpm));
int repeats = 2;//step_length / period;
So tomorrow I can…
Get a little more information with monitor_filters = esp32_exception_decoder in platformio.ini.
Guru Meditation Error: Core 0 panic'ed (IntegerDivideByZero). Exception was unhandled.
Core…
The igniter code works pretty well when stripped down, even if I don't understand it.
The problem is that for Morse, I need to know the duration of the message, which means that the `MorseEffect…
Here's an example, I think: 97ad8480f7/igniter.ino (L118)
JLedSequence* changePeriod(JLedSequence* seq, unsigned int…
https://github.com/ArduinoGetStarted/led (ezLED) is interesting, but I get errors on build. See Sites/ezLED.
This causes it to reboot over and over:
JLedSequence make_sequence(int gpio, const char* message, int wpm, int step_length, int n_transmitters){
int ms_per_dit = 1000 * (60 / (50 *…
I'm going to look for JLed alternatives, or maybe ask for help developing this function.
Back to this:
E (37611) ledc: ledc_set_duty(402): channel argument is invalid
E (37616) ledc: ledc_update_duty(334): channel argument is invalid
I am trying to write a function to…
I'm beginning to think there really is no way to update/replace a Jled sequence on the fly in loop(). So I could set up some basic options and let people choose from a list, until I can figure…
When using DelayAfter(), need to take that into account for remainer_wait and total_wait math, because it's outside of the duration returned by morse_cycle.Period().