Skip to content

Commit 8675147

Browse files
authored
Update content.md
In Analog Inputs sketch: const float VOLTAGE_MAX = 3.0; changed to const float VOLTAGE_MAX = 3.3; const float DIVIDER = 0.3; changed to const float DIVIDER = 0.3034; Changed driven by R&D HW feedback.
1 parent 1836bec commit 8675147

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)