OmBlinker

Declared In:

Introduction

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



Member Functions

addBlink
addDigit
addInterjection
addNumber
addOffTime
addOnTime
OmBlinker

addBlink


public

void addBlink( int onTime, int offTime);
Discussion

add an On blink and an Off blink


addDigit


public

void addDigit( unsigned int digit);
Discussion

add several blinks to represent a digit 0 to 9, like 3 blinks for 3. NOTE: does zero blinks 10 times


addInterjection


public

void addInterjection( int blinkCount, int blinkSize);
Discussion

Play a simple blink "on top of" the repeating pattern


addNumber


public

void addNumber( unsigned int number);
Discussion

add blinks and pauses to play a number in decimal


addOffTime


public

void addOffTime( int offTime);
Discussion

add an Off blink (or extend the last pause)


addOnTime


public

void addOnTime( int onTime);
Discussion

add an On blink (or extend the last one)


OmBlinker


public

OmBlinker( int ledPin = -1);
Discussion

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


Member Data

oncePattern
repeatingPattern

oncePattern


protected

std::vector<int> oncePattern;
Discussion

This pattern would fire once, and then the repeating pattern resumes.


repeatingPattern


protected

std::vector<int> repeatingPattern;
Discussion

This pattern just keeps repeating