Slide 25
Slide 25 text
© 2024 Renesas Electronics Corporation. All rights reserved. Page 25
THING スケッチの編集と書き込み
#include "thingProperties.h"
void setup() {
Serial.begin(9600);
delay(1500);
initProperties();
ArduinoCloud.begin(ArduinoIoTPreferredConnection);
setDebugMessageLevel(2);
ArduinoCloud.printDebugInfo();
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);
}
void loop() {
ArduinoCloud.update();
// Your code here
}
void onLivingLightChange() {
// Add your code here to act upon LivingLight change
digitalWrite(LED_BUILTIN, livingLight);
}