integrate CT with ESPMegaIoT
This commit is contained in:
parent
000c06809c
commit
69b2198342
5 changed files with 17 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
#include <FRAM.h>
|
||||
#include <map>
|
||||
|
||||
#define CARD_TYPE_CT 5
|
||||
#define CARD_TYPE_CT 4
|
||||
|
||||
/**
|
||||
* @brief The CurrentTransformer class is a class for reading the current and energy from a current transformer that's connected to the AnalogCard.
|
||||
|
@ -29,6 +29,7 @@ class CurrentTransformerCard
|
|||
float getVoltage();
|
||||
uint8_t registerCallback(std::function<void(float, double)> callback);
|
||||
void unregisterCallback(uint8_t handler);
|
||||
uint8_t getType();
|
||||
private:
|
||||
AnalogCard* analogCard;
|
||||
uint8_t pin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue