21 relaid = (relay != NULL);
26 pinMode(relay, OUTPUT);
27 digitalWrite(relay, cur ? HIGH : LOW);
38 past = millis() - last;
52 digitalWrite(relay, cur ? HIGH : LOW);
bool change()
Checks whether the buffer was changed from previous loop.
bool off()
Checks whether current value is false.
bool turnon()
Checks whether the buffer turned on in current loop.
bool keep()
Checks whether the buffer kept unchanged from previous loop.
void update(bool)
Updates boolean buffer by current value.
bool on()
Checks whether current value is true.
bool turnoff()
Checks whether the buffer turned off in current loop.
CgnLogger(bool=false, byte=NULL, byte=0)
Constructor.