Skip to content

Commit d12831b

Browse files
authored
Merge 8675147 into 1836bec
2 parents 1836bec + 8675147 commit d12831b

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ The sketch below shows how to monitor analog voltages on Opta's input terminals
242242
*/
243243
244244
// Define constants for voltage, resolution, and divider.
245-
const float VOLTAGE_MAX = 3.0; // Maximum voltage that can be read
245+
const float VOLTAGE_MAX = 3.3; // Maximum voltage that can be read
246246
const float RESOLUTION = 4095.0; // 12-bit resolution
247-
const float DIVIDER = 0.3; // Voltage divider
247+
const float DIVIDER = 0.3034; // Voltage divider
248248
249249
// Array of terminals.
250250
const int TERMINALS[] = {A0, A1, A2};

0 commit comments

Comments
 (0)