Skip to content

Commit e268aa7

Browse files
committed
My final review
1 parent cfac4e5 commit e268aa7

File tree

1 file changed

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

1 file changed

+12
-8
lines changed

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

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2883,6 +2883,7 @@ The following example will let you read all the analog inputs of every expansion
28832883

28842884
```arduino
28852885
#include "OptaBlue.h"
2886+
28862887
#define PERIODIC_UPDATE_TIME 500
28872888
#define DELAY_AFTER_SETUP 5000
28882889
@@ -3014,7 +3015,7 @@ for(int i = 0; i < OptaController.getExpansionNum(); i++) { // check all the av
30143015
```
30153016
The above method will check if there is an Ext A0602 expansion connected in the `i` index from the five admitted. This will ensure which expansion the read state belongs to.
30163017

3017-
The expansion channels are configured as **analog voltage inputs** using the function `beginChannelAsAdc` alongside the following parameters:
3018+
The expansion channels are configured as **analog voltage inputs** using the function `beginChannelAsAdc()` alongside the following parameters:
30183019

30193020
```arduino
30203021
AnalogExpansion::beginChannelAsAdc(OptaController, // the expansion object
@@ -3027,7 +3028,7 @@ AnalogExpansion::beginChannelAsAdc(OptaController, // the expansion object
30273028
0); // disable averaging
30283029
```
30293030

3030-
You can also use the simplified dedicated method using the function `beginChannelAsVoltageAdc` as follows:
3031+
You can also use the simplified dedicated method using the function `beginChannelAsVoltageAdc()` as follows:
30313032

30323033
```arduino
30333034
exp.beginChannelAsVoltageAdc(<exp channel>); // pass the desired input as argument
@@ -3214,7 +3215,7 @@ for(int i = 0; i < OptaController.getExpansionNum(); i++) { // check all the av
32143215
```
32153216
The above method will check if there is an Ext A0602 expansion connected in the `i` index from the five admitted. This will ensure which expansion the read state belongs to.
32163217

3217-
The expansion channels are configured as **analog current inputs** using the function `beginChannelAsAdc` alongside the following parameters:
3218+
The expansion channels are configured as **analog current inputs** using the function `beginChannelAsAdc()` alongside the following parameters:
32183219

32193220
```arduino
32203221
AnalogExpansion::beginChannelAsAdc(OptaController, // the expansion object
@@ -3227,7 +3228,7 @@ AnalogExpansion::beginChannelAsAdc(OptaController, // the expansion object
32273228
0); // disable averaging
32283229
```
32293230

3230-
You can also use the simplified dedicated method using the function `beginChannelAsCurrentAdc` as follows:
3231+
You can also use the simplified dedicated method using the function `beginChannelAsCurrentAdc()` as follows:
32313232

32323233
```arduino
32333234
exp.beginChannelAsCurrentAdc(<exp channel>); // pass the desired input as argument
@@ -3414,8 +3415,8 @@ The Analog Expansion input channels can be used for temperature metering with **
34143415

34153416
3 wires RTDs has generally two wires with the same color.
34163417

3417-
- Connect the two wires with the same color to the - and the ICx screw terminals respectively.
3418-
- Connect the wire with a different color to the + screw terminal.
3418+
- Connect the two wires with the same color to the `-` and the `ICx` screw terminals respectively.
3419+
- Connect the wire with a different color to the `+` screw terminal.
34193420

34203421
***3 wires RTD can only be measured by channels __I1__ and __I2__.***
34213422

@@ -3434,6 +3435,7 @@ For the following example a 2 wires **PT1000** will be used connected to **I1**.
34343435
34353436
#define PERIODIC_UPDATE_TIME 2000
34363437
#define DELAY_AFTER_SETUP 1000
3438+
34373439
// RTD constants
34383440
float a = 0.0039083;
34393441
float b = -0.0000005775;
@@ -3802,7 +3804,7 @@ for(int i = 0; i < OptaController.getExpansionNum(); i++) { // check all the av
38023804
```
38033805
The above method will check if there is an Ext A0602 expansion connected in the `i` index from the five admitted. This will ensure which expansion the read state belongs to.
38043806

3805-
The expansion channels are configured as **voltage output** using the function `beginChannelAsDac` alongside the following parameters:
3807+
The expansion channels are configured as **voltage output** using the function `beginChannelAsDac()` alongside the following parameters:
38063808

38073809
```arduino
38083810
AnalogExpansion::beginChannelAsDac(OptaController, // object class
@@ -3991,7 +3993,7 @@ for(int i = 0; i < OptaController.getExpansionNum(); i++) { // check all the av
39913993
```
39923994
The above method will check if there is an Ext A0602 expansion connected in the `i` index from the five admitted. This will ensure which expansion the read state belongs to.
39933995

3994-
The expansion channels are configured as **current output** using the function `beginChannelAsDac` alongside the following parameters:
3996+
The expansion channels are configured as **current output** using the function `beginChannelAsDac()` alongside the following parameters:
39953997

39963998
```arduino
39973999
AnalogExpansion::beginChannelAsDac(OptaController, // object class
@@ -4203,6 +4205,8 @@ To control a status LED use the built-in function `switchLedOn()` or `switchLedO
42034205
```arduino
42044206
// Turn ON
42054207
exp.switchLedOn(<LED>, <update>); // define the LED to control and set to true or false the update parameter
4208+
4209+
// Turn OFF
42064210
exp.switchLedOff(<LED>, <update>); // define the LED to control and set to true or false the update parameter
42074211
```
42084212
If the `update` parameter is set to "false", then you will be setting the desired status of the LED but it won't be applied until you call `updateLeds()` function.

0 commit comments

Comments
 (0)