diff --git a/vulpes/src/main.cpp b/vulpes/src/main.cpp index 7c48b99..e782b69 100644 --- a/vulpes/src/main.cpp +++ b/vulpes/src/main.cpp @@ -60,14 +60,14 @@ const char index_html[] PROGMEM = R"rawliteral(
inputString (current value %inputString%):
- Sending program (cycle doesn't work yet): + Sending program (cycle doesn't work yet) (current %inputSend%):
- Message: + Message (current %inputMsg%):
- WPM (current value %inputWPM%): (doesn't work yet)
+ inputFloat (current value %inputFloat%):
@@ -265,7 +265,7 @@ int wpm = 10; int ms_per_dit = 120; //1000 * (60 / (50 * wpm)); int word_space_ms = ms_per_dit * 7; // Hardcoding these for now, will come back and make it more flexible. -MorseEffect morseEffect("CQ CQ CQ DE W1CDN", ms_per_dit); +MorseEffect morseEffectCQ("CQ CQ CQ DE W1CDN", ms_per_dit); MorseEffect morseEffectMOE("MOE", ms_per_dit); MorseEffect morseEffectMOI("MOI", ms_per_dit); MorseEffect morseEffectMOS("MOS", ms_per_dit); @@ -273,7 +273,7 @@ MorseEffect morseEffectMOH("MOH", ms_per_dit); MorseEffect morseEffectMO5("MO5", ms_per_dit); auto morseCQ = - JLed(output26).UserFunc(&morseEffect).DelayAfter(word_space_ms).Forever(); + JLed(output26).UserFunc(&morseEffectCQ).DelayAfter(word_space_ms).Forever(); auto morseMOE = JLed(output26).UserFunc(&morseEffectMOE).DelayAfter(word_space_ms).Forever(); auto morseMOI = @@ -423,20 +423,19 @@ void loop() { //sender.continueSending(); // See which message we are sending - auto morseToSend = JLed(output26); - if(yourInputMsg == 0){ - morseToSend = morseCQ; - } else if(yourInputMsg == 1){ - morseToSend = morseMOE; - } else if(yourInputMsg == 2){ - morseToSend = morseMOI; - } else if(yourInputMsg == 3){ - morseToSend = morseMOS; - } else if(yourInputMsg == 4){ - morseToSend = morseMOH; - } else if(yourInputMsg == 5){ - morseToSend = morseMO5; - } + // if(yourInputMsg == 0){ + // morseToSend = JLed(output26).UserFunc(&morseEffectCQ).DelayAfter(word_space_ms).Forever(); + // } else if(yourInputMsg == 1){ + // morseToSend = morseMOE; + // } else if(yourInputMsg == 2){ + // morseToSend = morseMOI; + // } else if(yourInputMsg == 3){ + // morseToSend = morseMOS; + // } else if(yourInputMsg == 4){ + // morseToSend = morseMOH; + // } else if(yourInputMsg == 5){ + // morseToSend = morseMO5; + // } // if you want to send continuous code, and it's not sending, then start it up