cgnuino
Public Member Functions | List of all members
CgnLogger Class Reference

Logs arbitorary bit change similar to CgnDI class. More...

#include <cgnuino.h>

Public Member Functions

 CgnLogger (bool=false, byte=NULL, byte=0)
 Constructor. More...
 
void update (bool)
 Updates boolean buffer by current value. More...
 
bool on ()
 Checks whether current value is true.
 
bool off ()
 Checks whether current value is false.
 
bool turnon ()
 Checks whether the buffer turned on in current loop.
 
bool turnoff ()
 Checks whether the buffer turned off in current loop.
 
bool change ()
 Checks whether the buffer was changed from previous loop.
 
bool keep ()
 Checks whether the buffer kept unchanged from previous loop.
 

Detailed Description

Examples:
Logger.ino.

Constructor & Destructor Documentation

CgnLogger::CgnLogger ( bool  b = false,
byte  o = NULL,
byte  d = 0 
)
Parameters
bInitial value of the logged boolean.
oFirst pin number for relaied output pins.
dDelay intervened after a bit change in [ms].

Member Function Documentation

void CgnLogger::update ( bool  b)
Note
For a normal usage, this method is intended to be called once, and only once, inside loop function.
Examples:
Logger.ino.

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