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
- Power supply of 12-24V DC, 1A (optional if not running the section related to the relays)
@@ -253,28 +253,24 @@ void loop() {
253
253
digitalWrite(LED_D3, LOW);
254
254
delay(1000);
255
255
}
256
+
```
256
257
257
258
*** Important: It is not possible to program the Opta while it is being powered with the power pins. You would need to disconnect the power supply, upload the program and then connect the power again. ***
258
259
259
260
### Using Opta's Inputs
260
261
261
262
Opta has 8 input pins that can be programmed to be used as analog or digital. The mapping between the marking on the Opta physical terminals (I1 to I8) and their definition in the core can be found below:
262
263
263
-
I1 --> A0
264
-
265
-
I2 --> A1
266
-
267
-
I3 --> A2
268
-
269
-
I4 --> A3
270
-
271
-
I5 --> A4
272
-
273
-
I6 --> A5
274
-
275
-
I7 --> A6
276
-
277
-
I8 --> A7
264
+
| Physical terminal | Defenition in core |
265
+
| ----------------- | ------------------ |
266
+
| I1 | A0 |
267
+
| I2 | A1 |
268
+
| I3 | A2 |
269
+
| I4 | A3 |
270
+
| I5 | A4 |
271
+
| I6 | A5 |
272
+
| I7 | A6 |
273
+
| I8 | A7 |
278
274
279
275
The 8 inputs pins can be used as digital (having the logical values of LOW or HIGH) or as analog inputs (within a range from 0 to 10V).
280
276
* To use them as digital inputs, add the Arduino command *pinMode(pinName, INPUT);* inside the setup().
0 commit comments