void setup() {
hat.lightSensor.begin();
}
void loop() {
uint32_t lux = hat.lightSensor.readLight();
Serial.println("Light: " + String(lux) + " lx");
delay(1000);
}
Main interface for the TKJHAT board.
Main interface for accessing TKJHAT board features.
void begin()
Initialize all peripherals on the HAT Also initializes the default I2C bus for sensors and display.