tortuga DataLogging Library: battery, speed, time, average...
Fork of DataLogging by
BatteryState.h
- Committer:
- ptuytsch
- Date:
- 2016-07-15
- Revision:
- 4:f91f45d52f9b
File content as of revision 4:f91f45d52f9b:
#ifndef BATTERYSTATE_H #define BATTERYSTATE_H #include "mbed.h" class BatteryState{ public: typedef enum batteryType { Battery12V=0, Battery48V } batteryType; BatteryState(PinName pin, batteryType batType); uint8_t getBatteryPercentage(); protected: AnalogIn batteryPin; batteryType type; }; #endif