You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/07.opta/opta-family/opta/tutorials/01.user-manual/content.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3038,7 +3038,7 @@ The function `optaAnalogTask()` reads all the analog input raw ADC values and pr
3038
3038
//Change
3039
3039
int value = exp.analogRead((uint8_t)j); // get the raw ADC reading
3040
3040
//for
3041
-
float value =exp.pinVoltage((uint8_t)j); // get the ADC reading and returns it as a voltage
3041
+
float value =exp.pinVoltage((uint8_t)j); // get the ADC reading and returns it as a voltage
3042
3042
```
3043
3043
3044
3044
After the Opta™ controller is programmed with the example sketch, open the Arduino IDE Serial Monitor and you will see each input reading as follows:
@@ -3076,7 +3076,7 @@ The Analog Expansion input channels can be configured for current loop instrumen
3076
3076
The current of an input terminal configured in current mode can be read using the built-in function `pinCurrent()` as shown below:
3077
3077
3078
3078
```arduino
3079
-
float value =exp.pinCurrent(<input>);
3079
+
float value =exp.pinCurrent(<input>);
3080
3080
```
3081
3081
3082
3082
The following example will let you measure the current in all the analog inputs of every expansion connected at once, this sketch is based on the built-in example found in **File > Examples > Arduino_Opta_Blueprint > Analog > ADC**:
@@ -3258,7 +3258,7 @@ There is another approach for interfacing 4-20 mA sensors that consists of defin
0 commit comments