Skip to content

Commit 58da087

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 1203f2a commit 58da087

File tree

11 files changed

+57
-57
lines changed

11 files changed

+57
-57
lines changed

libraries/Matter/examples/MatterColorLight/MatterColorLight.ino

+6-6
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ const uint8_t ledPin = 2; // Set your pin here if your board has not defined LE
3838
const uint8_t buttonPin = BOOT_PIN; // Set your pin here. Using BOOT Button.
3939

4040
// Button control
41-
uint32_t button_time_stamp = 0; // debouncing control
42-
bool button_state = false; // false = released | true = pressed
43-
const uint32_t debouceTime = 250; // button debouncing time (ms)
44-
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
41+
uint32_t button_time_stamp = 0; // debouncing control
42+
bool button_state = false; // false = released | true = pressed
43+
const uint32_t debouceTime = 250; // button debouncing time (ms)
44+
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
4545

4646
// WiFi is manually set and started
4747
const char *ssid = "your-ssid"; // Change this to your WiFi SSID
@@ -171,7 +171,7 @@ void loop() {
171171
if (digitalRead(buttonPin) == HIGH && button_state && time_diff > debouceTime) {
172172
// Toggle button is released - toggle the light
173173
Serial.println("User button released. Toggling Light!");
174-
ColorLight.toggle(); // Matter Controller also can see the change
174+
ColorLight.toggle(); // Matter Controller also can see the change
175175
button_state = false; // released
176176
}
177177

@@ -180,6 +180,6 @@ void loop() {
180180
Serial.println("Decommissioning the Light Matter Accessory. It shall be commissioned again.");
181181
ColorLight = false; // turn the light off
182182
Matter.decommission();
183-
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
183+
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
184184
}
185185
}

libraries/Matter/examples/MatterComposedLights/MatterComposedLights.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ const char *password = "your-password"; // Change this to your WiFi password
3030
const uint8_t buttonPin = BOOT_PIN; // Set your pin here. Using BOOT Button.
3131

3232
// Button control
33-
uint32_t button_time_stamp = 0; // debouncing control
34-
bool button_state = false; // false = released | true = pressed
35-
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
33+
uint32_t button_time_stamp = 0; // debouncing control
34+
bool button_state = false; // false = released | true = pressed
35+
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
3636

3737
// Matter Protocol Endpoint Callback for each Light Accessory
3838
bool setLightOnOff1(bool state) {
@@ -135,7 +135,7 @@ void loop() {
135135
if (button_state && time_diff > decommissioningTimeout) {
136136
Serial.println("Decommissioning the Light Matter Accessory. It shall be commissioned again.");
137137
Matter.decommission();
138-
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
138+
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
139139
}
140140

141141
delay(500);

libraries/Matter/examples/MatterDimmableLight/MatterDimmableLight.ino

+6-6
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ const uint8_t ledPin = 2; // Set your pin here if your board has not defined LE
3838
const uint8_t buttonPin = BOOT_PIN; // Set your pin here. Using BOOT Button.
3939

4040
// Button control
41-
uint32_t button_time_stamp = 0; // debouncing control
42-
bool button_state = false; // false = released | true = pressed
43-
const uint32_t debouceTime = 250; // button debouncing time (ms)
44-
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
41+
uint32_t button_time_stamp = 0; // debouncing control
42+
bool button_state = false; // false = released | true = pressed
43+
const uint32_t debouceTime = 250; // button debouncing time (ms)
44+
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
4545

4646
// WiFi is manually set and started
4747
const char *ssid = "your-ssid"; // Change this to your WiFi SSID
@@ -161,14 +161,14 @@ void loop() {
161161
// Toggle button is released - toggle the light
162162
Serial.println("User button released. Toggling Light!");
163163
DimmableLight.toggle(); // Matter Controller also can see the change
164-
button_state = false; // released
164+
button_state = false; // released
165165
}
166166

167167
// Onboard User Button is kept pressed for longer than 5 seconds in order to decommission matter node
168168
if (button_state && time_diff > decommissioningTimeout) {
169169
Serial.println("Decommissioning the Light Matter Accessory. It shall be commissioned again.");
170170
DimmableLight = false; // turn the light off
171171
Matter.decommission();
172-
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
172+
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
173173
}
174174
}

libraries/Matter/examples/MatterEnhancedColorLight/MatterEnhancedColorLight.ino

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ const uint8_t ledPin = 2; // Set your pin here if your board has not defined LE
4141
const uint8_t buttonPin = BOOT_PIN; // Set your pin here. Using BOOT Button.
4242

4343
// Button control
44-
uint32_t button_time_stamp = 0; // debouncing control
45-
bool button_state = false; // false = released | true = pressed
46-
const uint32_t debouceTime = 250; // button debouncing time (ms)
47-
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
44+
uint32_t button_time_stamp = 0; // debouncing control
45+
bool button_state = false; // false = released | true = pressed
46+
const uint32_t debouceTime = 250; // button debouncing time (ms)
47+
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
4848

4949
// WiFi is manually set and started
5050
const char *ssid = "your-ssid"; // Change this to your WiFi SSID
@@ -202,6 +202,6 @@ void loop() {
202202
Serial.println("Decommissioning the Light Matter Accessory. It shall be commissioned again.");
203203
EnhancedColorLight = false; // turn the light off
204204
Matter.decommission();
205-
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
205+
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
206206
}
207207
}

libraries/Matter/examples/MatterFan/MatterFan.ino

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ MatterFan Fan;
2424
const uint8_t buttonPin = BOOT_PIN; // Set your pin here. Using BOOT Button.
2525

2626
// Button control
27-
uint32_t button_time_stamp = 0; // debouncing control
28-
bool button_state = false; // false = released | true = pressed
29-
const uint32_t debouceTime = 250; // button debouncing time (ms)
30-
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
27+
uint32_t button_time_stamp = 0; // debouncing control
28+
bool button_state = false; // false = released | true = pressed
29+
const uint32_t debouceTime = 250; // button debouncing time (ms)
30+
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
3131

3232
// set your board Analog Pin here - used for changing the Fan speed
3333
const uint8_t analogPin = A0; // Analog Pin depends on each board
@@ -187,8 +187,8 @@ void loop() {
187187
if (button_state && time_diff > decommissioningTimeout) {
188188
Serial.println("Decommissioning the Generic Switch Matter Accessory. It shall be commissioned again.");
189189
Matter.decommission();
190-
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
191-
}
190+
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
191+
}
192192

193193
// checks Analog pin and adjust the speed only if it has changed
194194
static int lastRead = 0;

libraries/Matter/examples/MatterMinimum/MatterMinimum.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ const uint8_t ledPin = 2; // Set your pin here if your board has not defined LE
3939
const uint8_t buttonPin = BOOT_PIN; // Set your pin here. Using BOOT Button.
4040

4141
// Button control - decommision the Matter Node
42-
uint32_t button_time_stamp = 0; // debouncing control
43-
bool button_state = false; // false = released | true = pressed
44-
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
42+
uint32_t button_time_stamp = 0; // debouncing control
43+
bool button_state = false; // false = released | true = pressed
44+
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
4545

4646
// Matter Protocol Endpoint (On/OFF Light) Callback
4747
bool matterCB(bool state) {
@@ -103,7 +103,7 @@ void loop() {
103103
if (button_state && time_diff > decommissioningTimeout) {
104104
Serial.println("Decommissioning the Light Matter Accessory. It shall be commissioned again.");
105105
Matter.decommission();
106-
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
106+
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
107107
}
108108

109109
delay(500);

libraries/Matter/examples/MatterOnOffLight/MatterOnOffLight.ino

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ const uint8_t ledPin = 2; // Set your pin here if your board has not defined LE
3737
const uint8_t buttonPin = BOOT_PIN; // Set your pin here. Using BOOT Button.
3838

3939
// Button control
40-
uint32_t button_time_stamp = 0; // debouncing control
41-
bool button_state = false; // false = released | true = pressed
42-
const uint32_t debouceTime = 250; // button debouncing time (ms)
43-
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
40+
uint32_t button_time_stamp = 0; // debouncing control
41+
bool button_state = false; // false = released | true = pressed
42+
const uint32_t debouceTime = 250; // button debouncing time (ms)
43+
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
4444

4545
// WiFi is manually set and started
4646
const char *ssid = "your-ssid"; // Change this to your WiFi SSID
@@ -148,6 +148,6 @@ void loop() {
148148
Serial.println("Decommissioning the Light Matter Accessory. It shall be commissioned again.");
149149
OnOffLight.setOnOff(false); // turn the light off
150150
Matter.decommission();
151-
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
151+
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
152152
}
153153
}

libraries/Matter/examples/MatterSmartButon/MatterSmartButon.ino

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ MatterGenericSwitch SmartButton;
2424
const uint8_t buttonPin = BOOT_PIN; // Set your pin here. Using BOOT Button.
2525

2626
// Button control
27-
uint32_t button_time_stamp = 0; // debouncing control
28-
bool button_state = false; // false = released | true = pressed
29-
const uint32_t debouceTime = 250; // button debouncing time (ms)
30-
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
27+
uint32_t button_time_stamp = 0; // debouncing control
28+
bool button_state = false; // false = released | true = pressed
29+
const uint32_t debouceTime = 250; // button debouncing time (ms)
30+
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
3131

3232
// WiFi is manually set and started
3333
const char *ssid = "your-ssid"; // Change this to your WiFi SSID
@@ -112,6 +112,6 @@ void loop() {
112112
if (button_state && time_diff > decommissioningTimeout) {
113113
Serial.println("Decommissioning the Generic Switch Matter Accessory. It shall be commissioned again.");
114114
Matter.decommission();
115-
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
115+
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
116116
}
117117
}

libraries/Matter/examples/MatterTemperatureLight/MatterTemperatureLight.ino

+5-5
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ const uint8_t ledPin = 2; // Set your pin here if your board has not defined LE
3939
const uint8_t buttonPin = BOOT_PIN; // Set your pin here. Using BOOT Button.
4040

4141
// Button control
42-
uint32_t button_time_stamp = 0; // debouncing control
43-
bool button_state = false; // false = released | true = pressed
44-
const uint32_t debouceTime = 250; // button debouncing time (ms)
45-
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
42+
uint32_t button_time_stamp = 0; // debouncing control
43+
bool button_state = false; // false = released | true = pressed
44+
const uint32_t debouceTime = 250; // button debouncing time (ms)
45+
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
4646

4747
// WiFi is manually set and started
4848
const char *ssid = "your-ssid"; // Change this to your WiFi SSID
@@ -192,6 +192,6 @@ void loop() {
192192
Serial.println("Decommissioning the Light Matter Accessory. It shall be commissioned again.");
193193
CW_WW_Light = false; // turn the light off
194194
Matter.decommission();
195-
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
195+
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
196196
}
197197
}

libraries/Matter/examples/MatterTemperatureSensor/MatterTemperatureSensor.ino

+7-7
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ MatterTemperatureSensor SimulatedTemperatureSensor;
3131
const uint8_t buttonPin = BOOT_PIN; // Set your pin here. Using BOOT Button.
3232

3333
// Button control - decommision the Matter Node
34-
uint32_t button_time_stamp = 0; // debouncing control
35-
bool button_state = false; // false = released | true = pressed
36-
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
34+
uint32_t button_time_stamp = 0; // debouncing control
35+
bool button_state = false; // false = released | true = pressed
36+
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
3737

3838
// WiFi is manually set and started
3939
const char *ssid = "your-ssid"; // Change this to your WiFi SSID
@@ -98,14 +98,14 @@ void setup() {
9898

9999
void loop() {
100100
static uint32_t timeCounter = 0;
101-
101+
102102
// Print the current temperature value every 5s
103103
if (!(timeCounter++ % 10)) { // delaying for 500ms x 10 = 5s
104104
// Print the current temperature value
105105
Serial.printf("Current Temperature is %.02f <Temperature Units>\r\n", SimulatedTemperatureSensor.getTemperature());
106106
// Update Temperature from the (Simulated) Hardware Sensor
107107
// Matter APP shall display the updated temperature percent
108-
SimulatedTemperatureSensor.setTemperature(getSimulatedTemperature());
108+
SimulatedTemperatureSensor.setTemperature(getSimulatedTemperature());
109109
}
110110

111111
// Check if the button has been pressed
@@ -124,8 +124,8 @@ void loop() {
124124
if (button_state && time_diff > decommissioningTimeout) {
125125
Serial.println("Decommissioning the Light Matter Accessory. It shall be commissioned again.");
126126
Matter.decommission();
127-
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
127+
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
128128
}
129-
129+
130130
delay(500);
131131
}

libraries/Matter/examples/WiFiProvWithinMatter/WiFiProvWithinMatter.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ const uint8_t ledPin = 2; // Set your pin here if your board has not defined LE
4545
const uint8_t buttonPin = BOOT_PIN; // Set your pin here. Using BOOT Button.
4646

4747
// Button control - decommision the Matter Node
48-
uint32_t button_time_stamp = 0; // debouncing control
49-
bool button_state = false; // false = released | true = pressed
50-
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
48+
uint32_t button_time_stamp = 0; // debouncing control
49+
bool button_state = false; // false = released | true = pressed
50+
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
5151

5252
// Matter Protocol Endpoint (On/OFF Light) Callback
5353
bool matterCB(bool state) {
@@ -145,7 +145,7 @@ void loop() {
145145
if (button_state && time_diff > decommissioningTimeout) {
146146
Serial.println("Decommissioning the Light Matter Accessory. It shall be commissioned again.");
147147
Matter.decommission();
148-
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
148+
button_time_stamp = millis(); // avoid running decommissining again, reboot takes a second or so
149149
}
150150

151151
delay(500);

0 commit comments

Comments
 (0)