mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2025-12-23 07:29:14 -08:00
Capture EAPOL packets
This commit is contained in:
23
esp32_marauder/BatteryInterface.h
Normal file
23
esp32_marauder/BatteryInterface.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef BatteryInterface_h
|
||||
#define BatteryInterface_h
|
||||
|
||||
#include <Wire.h>
|
||||
|
||||
#define I2C_SDA 33
|
||||
#define I2C_SCL 22
|
||||
#define IP5306_ADDR 0x75
|
||||
|
||||
class BatteryInterface {
|
||||
private:
|
||||
|
||||
public:
|
||||
int8_t battery_level = 0;
|
||||
bool i2c_supported = false;
|
||||
|
||||
BatteryInterface();
|
||||
|
||||
void RunSetup();
|
||||
int8_t getBatteryLevel();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user