mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-15 16:01:19 +10:00
* add heltec-mesh-node-t1 * fixed low power * Update the sensor enumeration values. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Fix memory leak in ICM42607PSensor * fix ST7735_MISO error --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
29 lines
547 B
C++
29 lines
547 B
C++
#pragma once
|
|
#ifndef _ICM42607P_SENSOR_H_
|
|
#define _ICM42607P_SENSOR_H_
|
|
|
|
#include "MotionSensor.h"
|
|
|
|
#if !defined(ARCH_STM32WL) && !MESHTASTIC_EXCLUDE_I2C && __has_include(<ICM42670P.h>)
|
|
|
|
#include <memory>
|
|
|
|
class ICM42670;
|
|
|
|
class ICM42607PSensor : public MotionSensor
|
|
{
|
|
private:
|
|
std::unique_ptr<ICM42670> sensor;
|
|
TwoWire *wire = nullptr;
|
|
|
|
public:
|
|
explicit ICM42607PSensor(ScanI2C::FoundDevice foundDevice);
|
|
~ICM42607PSensor() override;
|
|
virtual bool init() override;
|
|
virtual int32_t runOnce() override;
|
|
};
|
|
|
|
#endif
|
|
|
|
#endif
|