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

Commit 00875cc

Browse files
committed
removed 20ms and fixed voltage reference in analog in example
1 parent 0b6810a commit 00875cc

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

examples/Analog_input/Analog_input_0_10V/Analog_input_0_10V.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
using namespace machinecontrol;
2121

2222
float res_divider = 0.28057;
23-
float reference = 3;
23+
float reference = 3.3;
2424

2525
void setup() {
2626
analogReadResolution(16);

examples/Analog_input/Analog_input_4_20mA/Analog_input_4_20mA.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ using namespace machinecontrol;
2121

2222
#define SENSE_RES 120
2323

24-
float reference = 3;
24+
float reference = 3.3;
2525

2626
void setup() {
2727
analogReadResolution(16);

examples/Analog_input/Analog_input_NTC/Analog_input_NTC.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace machinecontrol;
2626

2727
#define REFERENCE_RES 100000
2828

29-
float reference = 3;
29+
float reference = 3.3;
3030
float lowest_voltage = 2.7;
3131

3232
void setup() {

src/Arduino_MachineControl.h

-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ class AnalogInClass {
189189
default:
190190
break;
191191
}
192-
delay(20);
193192
return value;
194193
}
195194

0 commit comments

Comments
 (0)