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

Commit

Permalink
removed 20ms and fixed voltage reference in analog in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocketct authored Sep 28, 2021
1 parent 0b6810a commit 0361747
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
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;
float reference = 3.3;

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;
float reference = 3.3;

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;
float reference = 3.3;
float lowest_voltage = 2.7;

void setup() {
Expand Down
1 change: 0 additions & 1 deletion src/Arduino_MachineControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ class AnalogInClass {
default:
break;
}
delay(20);
return value;
}

Expand Down

0 comments on commit 0361747

Please sign in to comment.