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 34ccfcc commit b7a0d87Copy full SHA for b7a0d87
examples/ArduinoIoTCloud_LED_switch/ArduinoIoTCloud_LED_switch.ino
@@ -48,17 +48,14 @@ void setup() {
48
49
void loop() {
50
ArduinoCloud.update();
51
-
52
- int potentiometer = analogRead(A0);
53
+ potentiometer = analogRead(A0);
54
}
55
56
57
/*
58
this function is called when the "led" property of your Thing changes
59
*/
60
void onLedChange() {
61
Serial.print("LED set to ");
62
Serial.println(led);
63
digitalWrite(LED_BUILTIN, led);
64
-}
+}
0 commit comments