cgnuino
|
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. | |
Logs arbitorary bit change similar to CgnDI class.
CgnLogger::CgnLogger | ( | bool | b = false , |
byte | o = NULL , |
||
byte | d = 0 |
||
) |
Constructor.
b | Initial value of the logged boolean. |
o | First pin number for relaied output pins. |
d | Delay intervened after a bit change in [ms]. |
void CgnLogger::update | ( | bool | b | ) |
Updates boolean buffer by current value.
loop
function.