diff --git a/docs/images/pulseTrain.png b/docs/images/pulseTrain.png index 96ebe2c..52bc659 100644 Binary files a/docs/images/pulseTrain.png and b/docs/images/pulseTrain.png differ diff --git a/documents/SetupCodes.key b/documents/SetupCodes.key index b20d508..f7a0a82 100755 Binary files a/documents/SetupCodes.key and b/documents/SetupCodes.key differ diff --git a/src/extras/RFControl.cpp b/src/extras/RFControl.cpp index 4644bc2..1c6d453 100644 --- a/src/extras/RFControl.cpp +++ b/src/extras/RFControl.cpp @@ -31,11 +31,11 @@ RFControl::RFControl(int pin){ /////////////////// -void RFControl::start(int _numCycles, int tickTime){ +void RFControl::start(uint8_t _numCycles, uint8_t tickTime){ pRMT[pCount]=0; // load end-marker (zero bytes) into RMT memory REG_WRITE(GPIO_ENABLE_W1TS_REG,1<32767 || onTime>32767){ - Serial.println("\n*** ERROR: Request to add RF Control pulse with ON or OFF time exceeds 32767 maximum allowed number of ticks\n\n"); + Serial.print("\n*** ERROR: Request to add RF Control pulse with ON or OFF time exceeds 32767 maximum allowed number of ticks\n\n"); } else { pRMT[pCount++]=(offTime<<16)+onTime+(1<<15); // load pulse information into RMT memory and increment pointer diff --git a/src/extras/RFControl.h b/src/extras/RFControl.h index 0744c37..9f35d15 100644 --- a/src/extras/RFControl.h +++ b/src/extras/RFControl.h @@ -16,7 +16,7 @@ class RFControl { RFControl(int pin); // creates transmitter on pin static void clear(); // clears transmitter memory static void add(uint16_t onTime, uint16_t offTime); // adds pulse of onTime ticks HIGH followed by offTime ticks LOW - void start(int _numCycles, int tickTime=1); // starts transmission of pulses, repeated for numCycles, where each tick in pulse is tickTime microseconds long + void start(uint8_t _numCycles, uint8_t tickTime=1); // starts transmission of pulses, repeated for numCycles, where each tick in pulse is tickTime microseconds long };