Library for the Berrett Hill Shop Touch Toggle
TouchToggle is an open source project for open source projects. Those wishing to create closed projects should seek an alternate solution. TouchToggle is licensed under the terms of the GNU General Public License v3.0 as opposed to the more liberal licensing terms of the GNU Lesser General Public License (LGPL), MIT, modified BSD, Apache, etc..
GPL licensing information can found here: https://www.gnu.org/licenses/
For full details on the licensing of TouchToggle and its components, see the included licensing file.
This library implements the protocol for interfacing the Berrett Hill Shop Touch Toggle to the Arduino platform.
TouchToggle();
TouchToggle(void(*callback)(uint8_t, uint16_t, uint8_t, uint8_t));
bool begin(uint8_t status, uint8_t pin);
void run();
void setHandler(void(*callback)(uint8_t, uint16_t, uint8_t, uint8_t));
uint16_t getID();
void setID(uint16_t id);
uint8_t getPin();
void setPin(uint8_t pin);
uint8_t getSensor(void);
uint8_t getStatus(void);