Skip to content

Commit a8daabc

Browse files
committed
code update
1 parent 3963b99 commit a8daabc

File tree

1 file changed

+3
-3
lines changed
  • content/hardware/07.opta/opta-family/opta/tutorials/01.user-manual

1 file changed

+3
-3
lines changed

content/hardware/07.opta/opta-family/opta/tutorials/01.user-manual/content.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3038,7 +3038,7 @@ The function `optaAnalogTask()` reads all the analog input raw ADC values and pr
30383038
//Change
30393039
int value = exp.analogRead((uint8_t)j); // get the raw ADC reading
30403040
//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
30423042
```
30433043

30443044
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
30763076
The current of an input terminal configured in current mode can be read using the built-in function `pinCurrent()` as shown below:
30773077

30783078
```arduino
3079-
float value = exp.pinCurrent(<input>);
3079+
float value = exp.pinCurrent(<input>);
30803080
```
30813081

30823082
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
32583258
#define PERIODIC_UPDATE_TIME 2000
32593259
#define DELAY_AFTER_SETUP 200
32603260
3261-
#define SENSOR_CH 0
3261+
#define SENSOR_CH 0 // define the sensor channel
32623262
32633263
/* -------------------------------------------------------------------------- */
32643264
void printExpansionType(ExpansionType_t t) {

0 commit comments

Comments
 (0)