We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d8053a commit 835b840Copy full SHA for 835b840
examples/adafruitio_07_digital_out/adafruitio_07_digital_out.ino
@@ -27,10 +27,9 @@
27
AdafruitIO_Feed *digital = io.feed("digital");
28
29
void setup() {
30
-
31
- // set led pin as a digital output
+
32
pinMode(LED_PIN, OUTPUT);
33
34
// start the serial connection
35
Serial.begin(115200);
36
@@ -56,7 +55,6 @@ void setup() {
56
55
// we are connected
57
Serial.println();
58
Serial.println(io.statusText());
59
- digital->get();
60
61
}
62
@@ -82,7 +80,6 @@ void handleMessage(AdafruitIO_Data *data) {
82
80
else
83
81
Serial.println("LOW");
84
85
- // write the current state to the led
86
- digitalWrite(LED_PIN, data->toPinLevel());
87
+ digitalWrite(LED_PIN, data->toPinLevel());
88
0 commit comments