Set up scheduled program cycles #24
|
@ -308,6 +308,9 @@ bool start_program(){
|
|||
void setup() {
|
||||
Serial.begin(115200);
|
||||
|
||||
Serial.print("morseEffectTEST.Period(): ");
|
||||
Serial.println(morseEffectTEST.Period());
|
||||
|
||||
pinMode(alarmPin, INPUT_PULLUP); // Set alarm pin as pullup
|
||||
|
||||
if (! rtc.begin()) {
|
||||
|
@ -533,6 +536,11 @@ void loop() {
|
|||
if(yourInputMsg == 0){
|
||||
morseToSend = morseTEST;
|
||||
morseToSend_blink = morseTEST_blink;
|
||||
// Experiment with timing
|
||||
int step_length = 30000; // 30 secs
|
||||
int repeats = step_length / morseEffectTEST.Period();
|
||||
morseToSend_blink.UserFunc(&morseEffectTEST).DelayAfter(word_space_ms).Repeat(repeats);
|
||||
|
||||
} else if(yourInputMsg == 1){
|
||||
morseToSend = morseMOE;
|
||||
morseToSend_blink = morseMOE_blink;
|
||||
|
@ -559,8 +567,6 @@ void loop() {
|
|||
//jled
|
||||
morseToSend.Reset().Update();
|
||||
morseToSend_blink.Reset().Update();
|
||||
//morse.send("CQ CQ CQ DE W1CDN K"); //etherkit morse
|
||||
//telegraph26.send("CQ CQ CQ DE W1CDN K"); //telegraph
|
||||
|
||||
// if you want to send continuous code, and it is sending, keep sending
|
||||
} else if((yourInputSend == 1) & (morseToSend.IsRunning() == true)){
|
||||
|
|
Loading…
Reference in New Issue
Block a user