A tilt switch is a type of switch that opens and closes based on its angle of tilt. A tilt switch is in its "ON state" when the switch is a closed connection, and it is in its "OFF state" when the ...
###boolean getState() Return true is the switch is on. ###void activateOnChange(void (*callback)()) Parameters: callback: a function pointer that will be automatically executed when the switch's state ...