33#include "SensorQMI8658.hpp"
34#ifdef ARDUINO_T_BEAM_S3_SUPREME
35#include <XPowersAXP2101.tpp>
99 Serial.println(
"Awake!");
105#if defined(ARDUINO_T_BEAM_S3_SUPREME)
106 XPowersAXP2101 power;
107 power.begin(Wire1, AXP2101_SLAVE_ADDRESS, 42, 41);
108 power.disableALDO1();
109 power.disableALDO2();
111 power.setALDO1Voltage(3300); power.enableALDO1();
112 power.setALDO2Voltage(3300); power.enableALDO2();
118 Serial.begin(115200);
127#if defined(SPI_MOSI) && defined(SPI_SCK) && defined(SPI_MISO)
135 Serial.println(
"Failed to find QMI8658 - check your wiring!");
142 Serial.print(
"Device ID:");
156 pinMode(
IMU_IRQ, INPUT_PULLUP);
bool begin(CommInterface interface, SensorCommCustom::CustomCallback callback, SensorCommCustomHal::CustomHalCallback hal_callback, uint8_t addr=0)
Initialize the sensor using custom callback interface.
QMI8658 IMU sensor driver class.
void dumpCtrlRegister()
Dump the control register values.
uint8_t getChipID() override
Get the chip ID / WHO_AM_I value.
void setWakeupMotionEventCallBack(EventCallBack_t cb)
uint16_t update()
Update sensor status and process events.
bool configWakeOnMotion(uint8_t threshold=200, float odr_hz=128.0f, IntPin pin=IntPin::PIN2)
Configure wake-on-motion (WoM) feature.