Skip to content

Commit c2ddc40

Browse files
committed
rename the angle variable in the servo example
1 parent 5513ca0 commit c2ddc40

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

examples/adafruitio_16_servo/adafruitio_16_servo.ino

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ void loop() {
8080
void handleMessage(AdafruitIO_Data *data) {
8181

8282
// convert the data to integer
83-
int reading = data->toInt();
83+
int angle = data->toInt();
8484

8585
// make sure we don't exceed the limit
8686
// of the servo. the range is from 0
8787
// to 180.
88-
if(reading < 0)
89-
reading = 0;
90-
else if(reading > 180)
91-
reading = 180;
88+
if(angle < 0)
89+
angle = 0;
90+
else if(angle > 180)
91+
angle = 180;
9292

93-
servo.write(reading);
93+
servo.write(angle);
9494

9595
}

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit IO Arduino
2-
version=2.4.2
2+
version=2.4.3
33
author=Adafruit
44
maintainer=Adafruit <info@adafruit.com>
55
sentence=Arduino library to access Adafruit IO.

src/AdafruitIO_Definitions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#define ADAFRUITIO_VERSION_MAJOR 2
1616
#define ADAFRUITIO_VERSION_MINOR 4
17-
#define ADAFRUITIO_VERSION_PATCH 2
17+
#define ADAFRUITIO_VERSION_PATCH 3
1818

1919
// forward declaration
2020
class AdafruitIO_Data;

0 commit comments

Comments
 (0)