Skip to content

Commit 8bba6ad

Browse files
committed
code snippets updated
1 parent 7453a2d commit 8bba6ad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To initialize the MCM ATM90E32 library, include the header file and call the `be
2323
- **4x** = 4 (CTs up to 15mA/180mV)
2424
- **Voltage and current calibration:** The seventh, eighth, ninth and tenth parameters fine tune the voltage and current measurements. These values are obtained with the calibration workflow.
2525

26-
```arduino
26+
```cpp
2727
#include <SPI.h>
2828
#include <MCM_ATM90E32.h>
2929

@@ -122,7 +122,7 @@ void setup() {
122122

123123
This function admits several parameters, see the following example as reference:
124124

125-
```arduino
125+
```cpp
126126
void VIoffsetCal()
127127
{
128128
// Voltage Offset Calibration
@@ -145,7 +145,7 @@ The `VIoffsetCal()` function from above will calculate and return the offset of
145145

146146
This function admits several parameters, see the following example as reference:
147147

148-
```arduino
148+
```cpp
149149
mcm.setVIOffset(64608, 64608, 64608, 64606, 64608, 64606); // Values obtained with VIoffsetCal()
150150
```
151151

@@ -162,7 +162,7 @@ This function admits the register to be calibrated and the voltage or current va
162162

163163
With those known values currently being present in the system input, run the following functions:
164164

165-
```arduino
165+
```cpp
166166
VCalibration(121.54, 0, 121.54); // Voltage in A, Voltage in B, Voltage in C
167167

168168
...
@@ -177,7 +177,7 @@ With those known values currently being present in the system input, run the fol
177177
}
178178
```
179179
180-
```arduino
180+
```cpp
181181
ICalibration(0.4815, 0, 0.4815); // Current in A, Current in B, Current in C
182182
183183
...

0 commit comments

Comments
 (0)