We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cec913 commit 1618003Copy full SHA for 1618003
libraries/Matter/examples/MatterFan/MatterFan.ino
@@ -149,7 +149,8 @@ void loop() {
149
uint32_t time_diff = millis() - button_time_stamp;
150
if (button_state && time_diff > debouceTime && digitalRead(buttonPin) == HIGH) {
151
button_state = false; // released
152
- // builtin button is released - send a click event to the Matter Controller
+ // builtin button is released - toggle Fan on/off
153
+
154
Fan.toggle();
155
Serial.printf("User button released. Setting the Fan %s.\r\n", Fan > 0 ? "ON" : "OFF");
156
0 commit comments