Skip to content

Commit dd21e6d

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 880ccf1 commit dd21e6d

File tree

6 files changed

+4
-10
lines changed

6 files changed

+4
-10
lines changed

docs/en/matter/ep_dimmable_plugin.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,4 +255,3 @@ Dimmable Plugin
255255

256256
.. literalinclude:: ../../../libraries/Matter/examples/MatterDimmablePlugin/MatterDimmablePlugin.ino
257257
:language: arduino
258-

libraries/Matter/examples/MatterDimmablePlugin/MatterDimmablePlugin.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const uint8_t buttonPin = BOOT_PIN; // Set your pin here. Using BOOT Button.
5050
// Button control
5151
uint32_t button_time_stamp = 0; // debouncing control
5252
bool button_state = false; // false = released | true = pressed
53-
const uint32_t debounceTime = 250; // button debouncing time (ms)
53+
const uint32_t debounceTime = 250; // button debouncing time (ms)
5454
const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s, or longer, to decommission
5555

5656
// Set the RGB LED Plugin output based on the current state and level
@@ -184,4 +184,3 @@ void loop() {
184184
button_time_stamp = millis(); // avoid running decommissioning again, reboot takes a second or so
185185
}
186186
}
187-

libraries/Matter/examples/MatterDimmablePlugin/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Before uploading the sketch, configure the following:
6969
```cpp
7070
const uint8_t pluginPin = 2; // Set your PWM-capable pin here for dimmer control
7171
```
72-
72+
7373
**Note**: The example uses `RGB_BUILTIN` if available on your board (e.g., ESP32-S3, ESP32-C3) to visually demonstrate the level control. The RGB LED brightness will change based on the power level (0-255). For boards without RGB LED, it falls back to a regular pin with PWM support.
7474

7575
3. **Button pin configuration** (optional):
@@ -220,4 +220,3 @@ The MatterDimmablePlugin example consists of the following main components:
220220
## License
221221

222222
This example is licensed under the Apache License, Version 2.0.
223-

libraries/Matter/examples/MatterDimmablePlugin/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ fqbn_append: PartitionScheme=huge_app
22

33
requires:
44
- CONFIG_ESP_MATTER_ENABLE_DATA_MODEL=y
5-

libraries/Matter/src/MatterEndpoints/MatterDimmablePlugin.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,4 +192,3 @@ void MatterDimmablePlugin::operator=(bool newState) {
192192
setOnOff(newState);
193193
}
194194
#endif /* CONFIG_ESP_MATTER_ENABLE_DATA_MODEL */
195-

libraries/Matter/src/MatterEndpoints/MatterDimmablePlugin.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,10 @@ class MatterDimmablePlugin : public MatterEndPoint {
6666

6767
protected:
6868
bool started = false;
69-
bool onOffState = false; // default initial state is off, but it can be changed by begin(bool)
70-
uint8_t level = 0; // default initial level is 0, but it can be changed by begin(bool, uint8_t)
69+
bool onOffState = false; // default initial state is off, but it can be changed by begin(bool)
70+
uint8_t level = 0; // default initial level is 0, but it can be changed by begin(bool, uint8_t)
7171
EndPointOnOffCB _onChangeOnOffCB = NULL;
7272
EndPointLevelCB _onChangeLevelCB = NULL;
7373
EndPointCB _onChangeCB = NULL;
7474
};
7575
#endif /* CONFIG_ESP_MATTER_ENABLE_DATA_MODEL */
76-

0 commit comments

Comments
 (0)