mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
ESP Matter beta release
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
This example code is in the Public Domain (or CC0 licensed, at your option.)
|
||||
|
||||
Unless required by applicable law or agreed to in writing, this
|
||||
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
||||
CONDITIONS OF ANY KIND, either express or implied.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define APP_LOG_TAG "light"
|
||||
|
||||
#define DEFAULT_POWER false
|
||||
#define DEFAULT_BRIGHTNESS 100
|
||||
#define DEFAULT_HUE 0
|
||||
#define DEFAULT_SATURATION 0
|
||||
|
||||
#define HUE_MAX 359
|
||||
#define HUE_ATTRIBUTE_MAX 254
|
||||
#define SATURATION_MAX 100
|
||||
#define SATURATION_ATTRIBUTE_MAX 254
|
||||
|
||||
#define APP_DRIVER_SRC_LOCAL "local"
|
||||
#define APP_DRIVER_SRC_MATTER "matter"
|
||||
|
||||
#define REMAP_TO_RANGE(value, from, to) value * to / from
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user