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

removed 20ms and fixed voltage reference in analog_in example #70

Merged
merged 1 commit into from
Sep 28, 2021
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;
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