diff --git a/PowerFunctions.cpp b/PowerFunctions.cpp index e4237fb..5c8f648 100644 --- a/PowerFunctions.cpp +++ b/PowerFunctions.cpp @@ -59,6 +59,14 @@ void PowerFunctions::combo_pwm(uint8_t blue_speed, uint8_t red_speed) send(); } +void PowerFunctions::send_beacon() +{ + _nib1 = ESCAPE | _channel; + _nib2 = 0x0; + _nib3 = 0x0; + send(); +} + // // Private methods // @@ -109,4 +117,4 @@ void PowerFunctions::send() } start_stop_bit(); } -} \ No newline at end of file +} diff --git a/PowerFunctions.h b/PowerFunctions.h index 1e4deb3..9b70413 100644 --- a/PowerFunctions.h +++ b/PowerFunctions.h @@ -63,6 +63,7 @@ class PowerFunctions void red_pwm(uint8_t); void blue_pwm(uint8_t); void combo_pwm(uint8_t, uint8_t); + void send_beacon(); private: void pause(uint8_t); @@ -76,4 +77,4 @@ class PowerFunctions }; #endif -// END OF FILE \ No newline at end of file +// END OF FILE