Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Fix voltage reference in examples #94

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
using namespace machinecontrol;

float res_divider = 0.28057;
float reference = 3.3;
float reference = 3.0;

void setup() {
analogReadResolution(16);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ using namespace machinecontrol;

#define SENSE_RES 120

float reference = 3.3;
float reference = 3.0;

void setup() {
analogReadResolution(16);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ using namespace machinecontrol;

#define REFERENCE_RES 100000

float reference = 3.3;
float reference = 3.0;
float lowest_voltage = 2.7;

void setup() {
Expand Down