From 867514739a46f9baa86a8f7b51d91b3a3da8b787 Mon Sep 17 00:00:00 2001 From: Fr4ng <100422525+Fr4ng@users.noreply.github.com> Date: Thu, 15 Feb 2024 11:22:47 +0100 Subject: [PATCH] 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. --- .../opta-family/opta/tutorials/01.user-manual/content.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/hardware/07.opta/opta-family/opta/tutorials/01.user-manual/content.md b/content/hardware/07.opta/opta-family/opta/tutorials/01.user-manual/content.md index 0176529cda..7bbfb84493 100644 --- a/content/hardware/07.opta/opta-family/opta/tutorials/01.user-manual/content.md +++ b/content/hardware/07.opta/opta-family/opta/tutorials/01.user-manual/content.md @@ -242,9 +242,9 @@ The sketch below shows how to monitor analog voltages on Opta's input terminals */ // Define constants for voltage, resolution, and divider. -const float VOLTAGE_MAX = 3.0; // Maximum voltage that can be read +const float VOLTAGE_MAX = 3.3; // Maximum voltage that can be read const float RESOLUTION = 4095.0; // 12-bit resolution -const float DIVIDER = 0.3; // Voltage divider +const float DIVIDER = 0.3034; // Voltage divider // Array of terminals. const int TERMINALS[] = {A0, A1, A2};