OmEspHelpers
Public Member Functions | List of all members
OmBlinker Class Reference

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...
 

Detailed Description

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?>.

Constructor & Destructor Documentation

◆ OmBlinker()

OmBlinker::OmBlinker ( int  ledPin = -1)

By default, OmBlinker won't blink, set to pin -1 to disable.

Member Function Documentation

◆ addBlink()

void OmBlinker::addBlink ( int  onTime,
int  offTime 
)

add an On blink and an Off blink

◆ addDigit()

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

◆ addInterjection()

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

◆ addNumber()

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

◆ addOffTime()

void OmBlinker::addOffTime ( int  offTime)

add an Off blink (or extend the last pause)

◆ addOnTime()

void OmBlinker::addOnTime ( int  onTime)

add an On blink (or extend the last one)


The documentation for this class was generated from the following files: