Logs arbitorary bit change similar to CgnDI class.
More...
#include <cgnuino.h>
|
| 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.
|
|
CgnLogger::CgnLogger |
( |
bool |
b = false , |
|
|
byte |
o = NULL , |
|
|
byte |
d = 0 |
|
) |
| |
- Parameters
-
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 | ) |
|
- 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: