Skip to content

Commit dacd08c

Browse files
authored
Update matter_accessory_driver.h
1 parent 072c7cc commit dacd08c

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

examples/espidf-arduino-matter-light/main/matter_accessory_driver.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
// set your board WS2812b pin here (e.g. 48 is the default pin for the ESP32-S3 devkit)
55
#ifndef CONFIG_WS2812_PIN
6-
#define WS2812_PIN 48 // ESP32-S3 DevKitC built-in LED
6+
#define WS2812_PIN 48 // ESP32-S3 DevKitC built-in LED
77
#else
8-
#define WS2812_PIN CONFIG_WS2812_PIN // From sdkconfig.defaults.<soc>
8+
#define WS2812_PIN CONFIG_WS2812_PIN // From sdkconfig.defaults.<soc>
99
#endif
1010

1111
#ifndef RGB_BUILTIN
@@ -14,34 +14,34 @@
1414

1515
// Set your board button pin here (e.g. 0 is the default pin for the ESP32-S3 devkit)
1616
#ifndef CONFIG_BUTTON_PIN
17-
#define BUTTON_PIN 0 // ESP32-S3 DevKitC built-in button
17+
#define BUTTON_PIN 0 // ESP32-S3 DevKitC built-in button
1818
#else
19-
#define BUTTON_PIN CONFIG_BUTTON_PIN // From sdkconfig.defaults.<soc>
19+
#define BUTTON_PIN CONFIG_BUTTON_PIN // From sdkconfig.defaults.<soc>
2020
#endif
2121

2222
/** Standard max values (used for remapping attributes) */
23-
#define STANDARD_BRIGHTNESS 255
24-
#define STANDARD_HUE 360
25-
#define STANDARD_SATURATION 255
23+
#define STANDARD_BRIGHTNESS 255
24+
#define STANDARD_HUE 360
25+
#define STANDARD_SATURATION 255
2626
#define STANDARD_TEMPERATURE_FACTOR 1000000
2727

2828
/** Matter max values (used for remapping attributes) */
29-
#define MATTER_BRIGHTNESS 254
30-
#define MATTER_HUE 254
31-
#define MATTER_SATURATION 254
29+
#define MATTER_BRIGHTNESS 254
30+
#define MATTER_HUE 254
31+
#define MATTER_SATURATION 254
3232
#define MATTER_TEMPERATURE_FACTOR 1000000
3333

3434
/** Default attribute values used during initialization */
35-
#define DEFAULT_POWER true
35+
#define DEFAULT_POWER true
3636
#define DEFAULT_BRIGHTNESS 64
37-
#define DEFAULT_HUE 128
37+
#define DEFAULT_HUE 128
3838
#define DEFAULT_SATURATION 254
3939

4040
typedef void *app_driver_handle_t;
4141

42-
esp_err_t light_accessory_set_power(void *led, uint8_t val);
42+
esp_err_t light_accessory_set_power(void *led, uint8_t val);
4343
esp_err_t light_accessory_set_brightness(void *led, uint8_t val);
4444
esp_err_t light_accessory_set_hue(void *led, uint8_t val);
4545
esp_err_t light_accessory_set_saturation(void *led, uint8_t val);
4646
esp_err_t light_accessory_set_temperature(void *led, uint16_t val);
47-
app_driver_handle_t light_accessory_init();
47+
app_driver_handle_t light_accessory_init();

0 commit comments

Comments
 (0)