mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-27 10:21:40 +00:00

* Initial upload * Tidy up * Update ICM20948Sensor.cpp * Update AccelerometerThread.h * Initial upload * Tidy up * Update ICM20948Sensor.cpp * Update AccelerometerThread.h --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
24 lines
452 B
C++
Executable File
24 lines
452 B
C++
Executable File
#pragma once
|
|
#ifndef _LIS3DH_SENSOR_H_
|
|
#define _LIS3DH_SENSOR_H_
|
|
|
|
#include "MotionSensor.h"
|
|
|
|
#if !defined(ARCH_PORTDUINO) && !defined(ARCH_STM32WL) && !MESHTASTIC_EXCLUDE_I2C
|
|
|
|
#include <Adafruit_LIS3DH.h>
|
|
|
|
class LIS3DHSensor : public MotionSensor
|
|
{
|
|
private:
|
|
Adafruit_LIS3DH sensor;
|
|
|
|
public:
|
|
explicit LIS3DHSensor(ScanI2C::FoundDevice foundDevice);
|
|
virtual bool init() override;
|
|
virtual int32_t runOnce() override;
|
|
};
|
|
|
|
#endif
|
|
|
|
#endif |