#include "TKJHAT.h"
void setup() {
hat.lightSensor.begin();
}
void loop() {
uint32_t lux = hat.lightSensor.readLight();
Serial.println("Light: " + String(lux) + " lx");
delay(1000);
}
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.