Main interface for accessing TKJHAT board features. More...
#include <TKJHAT.h>
Public Member Functions | |
| void | begin () |
| Initialize all peripherals on the HAT Also initializes the default I2C bus for sensors and display. | |
| TKJHAT () | |
| Construct a new TKJHAT object. | |
Public Attributes | |
| Button | button1 |
| Button 1 on the board. | |
| Button | button2 |
| Button 2 on the board. | |
| Buzzer | buzzer |
| Buzzer output. | |
| Display | display |
| Display module. | |
| HDC2021 | hdc2021 |
| Temperature and humidity sensor. | |
| ICM42670 | icm42670 |
| IMU sensor (accelerometer + gyroscope). | |
| Led | led |
| Onboard LED. | |
| LightSensor | lightSensor |
| Ambient light sensor. | |
| RGBLed | rgbLed |
| RGB LED. | |
Main interface for accessing TKJHAT board features.
Example:
| void TKJHAT::begin | ( | ) |
Initialize all peripherals on the HAT Also initializes the default I2C bus for sensors and display.
Must be called in setup() before using any components.