3
3
4
4
// set your board WS2812b pin here (e.g. 48 is the default pin for the ESP32-S3 devkit)
5
5
#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
7
7
#else
8
- #define WS2812_PIN CONFIG_WS2812_PIN // From sdkconfig.defaults.<soc>
8
+ #define WS2812_PIN CONFIG_WS2812_PIN // From sdkconfig.defaults.<soc>
9
9
#endif
10
10
11
11
#ifndef RGB_BUILTIN
14
14
15
15
// Set your board button pin here (e.g. 0 is the default pin for the ESP32-S3 devkit)
16
16
#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
18
18
#else
19
- #define BUTTON_PIN CONFIG_BUTTON_PIN // From sdkconfig.defaults.<soc>
19
+ #define BUTTON_PIN CONFIG_BUTTON_PIN // From sdkconfig.defaults.<soc>
20
20
#endif
21
21
22
22
/** 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
26
26
#define STANDARD_TEMPERATURE_FACTOR 1000000
27
27
28
28
/** 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
32
32
#define MATTER_TEMPERATURE_FACTOR 1000000
33
33
34
34
/** Default attribute values used during initialization */
35
- #define DEFAULT_POWER true
35
+ #define DEFAULT_POWER true
36
36
#define DEFAULT_BRIGHTNESS 64
37
- #define DEFAULT_HUE 128
37
+ #define DEFAULT_HUE 128
38
38
#define DEFAULT_SATURATION 254
39
39
40
40
typedef void * app_driver_handle_t ;
41
41
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 );
43
43
esp_err_t light_accessory_set_brightness (void * led , uint8_t val );
44
44
esp_err_t light_accessory_set_hue (void * led , uint8_t val );
45
45
esp_err_t light_accessory_set_saturation (void * led , uint8_t val );
46
46
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