20 hat.lightSensor.begin();
25 uint32_t lux = hat.lightSensor.readLight();
26 Serial.println(
"Light: " + String(lux) +
" lx");
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.