#include "TKJHAT.h"
void setup() {
hat.button1.begin();
}
void loop() {
if (hat.button1.isPressed()) {
Serial.println("Button 1 Pressed!");
}
delay(100);
}
Main interface for accessing TKJHAT board features.
Definition TKJHAT.h:35
void begin()
Initialize all peripherals on the HAT Also initializes the default I2C bus for sensors and display.