Skip to content

Commit 7b92927

Browse files
committed
new version update
1 parent fdeeb46 commit 7b92927

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

docs/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ To initialize the MCM ATM90E32 library, include the header file and call the `be
3434
*/
3535
unsigned short LineFreq = 60; //
3636
unsigned short SumMode = 1; // 0: Aritmethic Energy Sum, 1: Absolute Energy Sum
37-
37+
unsigned short phases = 2;
3838
/*
3939
* 1x (CTs up to 60mA/720mV)
4040
* 2x (CTs up to 30mA/360mV)
@@ -56,7 +56,7 @@ const int CS_pin = SS; // Use default SS pin for unknown Arduino
5656
ATM90E32 mcm{}; //initialize the IC class
5757

5858
void setup() {
59-
mcm.begin(CS_pin, LineFreq, SumMode, IAGain, IBGain, ICGain, VoltageCal, CT1Cal, 0, CT2Cal);
59+
mcm.begin(CS_pin, LineFreq, phases, SumMode, IAGain, IBGain, ICGain, VoltageCal, CT1Cal, 0, CT2Cal);
6060
}
6161

6262
...

examples/Basic_Energy_Meter/Basic_Energy_Meter.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ void setup() {
5151
pinMode(LED_MCM, OUTPUT);
5252

5353
Serial.println("Start ATM90E32");
54-
eic.begin(CS_pin, LineFreq, phases, SumMode, IAGain, IBGain, ICGain, VoltageCal, CT1Cal, 0, CT2Cal);
55-
eic.setVIOffset(64608, 64608, 64608, 64606, 64608, 64606); // Values obtained with VIoffsetCal()
54+
mcm.begin(CS_pin, LineFreq, phases, SumMode, IAGain, IBGain, ICGain, VoltageCal, CT1Cal, 0, CT2Cal);
55+
mcm.setVIOffset(64608, 64608, 64608, 64606, 64608, 64606); // Values obtained with VIoffsetCal()
5656
delay(1000);
5757
unsigned short sys0 = mcm.GetSysStatus0(); //EMMState0
5858

examples/Calibration_Example/Calibration_Example.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ void setup()
6868
pinMode(LED_MCM, OUTPUT);
6969

7070
Serial.println("Start ATM90E32");
71-
eic.begin(CS_pin, LineFreq, phases, SumMode, IAGain, IBGain, ICGain, VoltageCal, CT1Cal, 0, CT2Cal);
72-
eic.setVIOffset(64608, 64608, 64608, 64606, 64608, 64606); // Values obtained with VIoffsetCal()
71+
mcm.begin(CS_pin, LineFreq, phases, SumMode, IAGain, IBGain, ICGain, VoltageCal, CT1Cal, 0, CT2Cal);
72+
mcm.setVIOffset(64608, 64608, 64608, 64606, 64608, 64606); // Values obtained with VIoffsetCal()
7373
delay(1000);
7474
unsigned short sys0 = mcm.GetSysStatus0(); // EMMState0
7575

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=MCM_ATM90E32
2-
version=0.0.1
2+
version=0.0.2
33
author=mcmchris
44
maintainer=mcmchris <[email protected]>
55
sentence=Arduino Library for the ATM90E32AS Energy Meter IC

0 commit comments

Comments
 (0)