OmEspHelpers
|
class to help send out timed repeating blinks, can be used to show IP address of the current connection. kind of silly, really, but I found it handy to blink out the last octet of 192.168.1.<what ip was i assigned?>. More...
#include <OmBlinker.h>
Public Member Functions | |
OmBlinker (int ledPin=-1) | |
void | setLedPin (int ledPin) |
void | setTickDivider (int tickDivider) |
void | tick () |
void | clear () |
void | addBlink (int onTime, int offTime) |
void | addOnTime (int onTime) |
void | addOffTime (int offTime) |
void | addDigit (unsigned int digit) |
add several blinks to represent a digit 0 to 9, like 3 blinks for 3. NOTE: does zero blinks 10 times More... | |
void | addNumber (unsigned int number) |
add blinks and pauses to play a number in decimal More... | |
void | addInterjection (int blinkCount, int blinkSize) |
Play a simple blink "on top of" the repeating pattern. More... | |
class to help send out timed repeating blinks, can be used to show IP address of the current connection. kind of silly, really, but I found it handy to blink out the last octet of 192.168.1.<what ip was i assigned?>.
OmBlinker::OmBlinker | ( | int | ledPin = -1 | ) |
By default, OmBlinker won't blink, set to pin -1 to disable.
void OmBlinker::addBlink | ( | int | onTime, |
int | offTime | ||
) |
add an On blink and an Off blink
void OmBlinker::addDigit | ( | unsigned int | digit | ) |
add several blinks to represent a digit 0 to 9, like 3 blinks for 3. NOTE: does zero blinks 10 times
add several blinks to represent a digit 0 to 9, like 3 blinks for 3. NOTE: does zero blinks 10 times
void OmBlinker::addInterjection | ( | int | blinkCount, |
int | blinkSize | ||
) |
Play a simple blink "on top of" the repeating pattern.
Play a simple blink "on top of" the repeating pattern
void OmBlinker::addNumber | ( | unsigned int | number | ) |
add blinks and pauses to play a number in decimal
add blinks and pauses to play a number in decimal
void OmBlinker::addOffTime | ( | int | offTime | ) |
add an Off blink (or extend the last pause)
void OmBlinker::addOnTime | ( | int | onTime | ) |
add an On blink (or extend the last one)