Skip to content

Commit bc2999f

Browse files
committed
deleted redundant analog in example and corrected typos in comments for analog examples
1 parent addbdd7 commit bc2999f

File tree

2 files changed

+6
-37
lines changed

2 files changed

+6
-37
lines changed

build/shared/examples/3.Analog/AnalogInSerial/AnalogInSerial.pde

Lines changed: 0 additions & 31 deletions
This file was deleted.

build/shared/examples/3.Analog/Calibration/Calibration.pde

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/*
22
Calibration
33
4-
Demonstrates one techinque for calibrating sensor input. The
4+
Demonstrates one technique for calibrating sensor input. The
55
sensor readings during the first five seconds of the sketch
66
execution define the minimum and maximum of expected values
77
attached to the sensor pin.
88
9-
The sensor minumum and maximum initial values may seem backwards.
9+
The sensor minimum and maximum initial values may seem backwards.
1010
Initially, you set the minimum high and listen for anything
11-
lower, saving it as the new minumum. Likewise, you set the
11+
lower, saving it as the new minimum. Likewise, you set the
1212
maximum low and listen for anything higher as the new maximum.
1313
1414
The circuit:
@@ -27,13 +27,13 @@
2727
*/
2828

2929
// These constants won't change:
30-
const int sensorPin = A0; // pin that the sensor is attached to
30+
const int sensorPin = A0; // pin that the sensor is attached to
3131
const int ledPin = 9; // pin that the LED is attached to
3232

3333
// variables:
3434
int sensorValue = 0; // the sensor value
35-
int sensorMin = 1023; // minimum sensor value
36-
int sensorMax = 0; // maximum sensor value
35+
int sensorMin = 1023; // minimum sensor value
36+
int sensorMax = 0; // maximum sensor value
3737

3838

3939
void setup() {

0 commit comments

Comments
 (0)