Home
last modified time | relevance | path

Searched refs:hue (Results 1 – 19 of 19) sorted by relevance

/hal_espressif-2.7.6/examples/bluetooth/esp_ble_mesh/common_components/light_driver/
Dlight_driver.c50 uint16_t hue; member
90 g_light_status.hue = 360; in light_driver_init()
114 … g_light_status.hue, g_light_status.saturation, g_light_status.value, g_light_status.lightness); in light_driver_init()
160 static esp_err_t light_driver_hsv2rgb(uint16_t hue, uint8_t saturation, uint8_t value, in light_driver_hsv2rgb() argument
163 uint16_t hi = (hue / 60) % 6; in light_driver_hsv2rgb()
164 uint16_t F = 100 * hue / 60 - 100 * hi; in light_driver_hsv2rgb()
220 double hue, saturation, value; in light_driver_rgb2hsv() local
228 hue = 0; in light_driver_rgb2hsv()
234 hue = (green - blue) / m_delta; in light_driver_rgb2hsv()
236 hue = 2 + (blue - red) / m_delta; in light_driver_rgb2hsv()
[all …]
/hal_espressif-2.7.6/examples/bluetooth/esp_ble_mesh/common_components/light_driver/include/
Dlight_driver.h100 esp_err_t light_driver_set_hue(uint16_t hue);
105 esp_err_t light_driver_set_hsv(uint16_t hue, uint8_t saturation, uint8_t value);
106 esp_err_t light_driver_set_hsl(uint16_t hue, uint8_t saturation, uint8_t lightness);
121 esp_err_t light_driver_get_hsv(uint16_t *hue, uint8_t *saturation, uint8_t *value);
123 esp_err_t light_driver_get_hsl(uint16_t *hue, uint8_t *saturation, uint8_t *lightness);
157 esp_err_t light_driver_fade_hue(uint16_t hue);
/hal_espressif-2.7.6/examples/bluetooth/esp_ble_mesh/aligenie_demo/components/vendor_model/
Dgenie_event.c344 uint16_t hue = *p_data++; in genie_event_handle_color_action() local
345 hue += (*p_data++ << 8); in genie_event_handle_color_action()
350 …d) saturation(%d)", p_elem->state.lightness[VALUE_TYPE_TAR], p_elem->state.hue[VALUE_TYPE_TAR], p_… in genie_event_handle_color_action()
388 …ESP_LOGD(TAG, "hue cur(%d) tar(%d)", p_elem->state.hue[VALUE_TYPE_CUR], p_elem->state.hue[VALUE_TY… in genie_event_handle_action_done()
389 if (p_elem->state.hue[VALUE_TYPE_CUR] != p_elem->state.hue[VALUE_TYPE_TAR]) { in genie_event_handle_action_done()
390 p_elem->state.hue[VALUE_TYPE_CUR] = p_elem->state.hue[VALUE_TYPE_TAR]; in genie_event_handle_action_done()
Dgenie_mesh.c887 buff[i++] = p_elem->state.hue[VALUE_TYPE_CUR] & 0xff; in genie_standart_indication()
888 buff[i++] = (p_elem->state.hue[VALUE_TYPE_CUR] >> 8) & 0xff; in genie_standart_indication()
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/mesh_models/server/include/
Dstate_binding.h64 uint16_t hue; member
71 uint16_t hue; member
92 int16_t bt_mesh_convert_hue_to_level(uint16_t hue);
Dlighting_server.h100 uint16_t hue; member
303 uint16_t hue; member
307 uint16_t hue; member
314 uint16_t hue; member
419 uint16_t hue; member
427 uint16_t hue; member
441 uint16_t hue; member
/hal_espressif-2.7.6/examples/peripherals/rmt/led_strip/main/
Dled_strip_main.c79 uint16_t hue = 0; in app_main() local
103 hue = j * 360 / CONFIG_EXAMPLE_STRIP_LED_NUMBER + start_rgb; in app_main()
104 led_strip_hsv2rgb(hue, 100, 100, &red, &green, &blue); in app_main()
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/mesh_models/server/
Dstate_binding.c77 int16_t bt_mesh_convert_hue_to_level(uint16_t hue) in bt_mesh_convert_hue_to_level() argument
79 return (int16_t) (hue + INT16_MIN); in bt_mesh_convert_hue_to_level()
269 srv->state->hue = value->light_hsl.hue; in bt_mesh_update_binding_state()
304 srv->state->hue = value->light_hsl_hue.hue; in bt_mesh_update_binding_state()
Dstate_transition.c189 ((float) (srv->state->hue - srv->state->target_hue) / srv->transition.counter); in light_hsl_tt_values()
199 ((float) (srv->state->hue - srv->state->target_hue) / srv->transition.counter); in light_hsl_hue_tt_values()
694 change.hsl_set.hue = srv->state->hue; in light_hsl_work_handler()
710 srv->state->hue -= srv->tt_delta_hue; in light_hsl_work_handler()
717 srv->state->hue = srv->state->target_hue; in light_hsl_work_handler()
722 change.hsl_set.hue = srv->state->hue; in light_hsl_work_handler()
753 change.hsl_hue_set.hue = srv->state->hue; in light_hsl_hue_work_handler()
767 srv->state->hue -= srv->tt_delta_hue; in light_hsl_hue_work_handler()
772 srv->state->hue = srv->state->target_hue; in light_hsl_hue_work_handler()
775 change.hsl_hue_set.hue = srv->state->hue; in light_hsl_hue_work_handler()
Dlighting_server.c1146 net_buf_simple_add_le16(msg, srv->state->hue); in send_light_hsl_status()
1195 net_buf_simple_add_le16(msg, srv->state->hue); in send_light_hsl_status()
1364 uint16_t lightness = 0U, hue = 0U, saturation = 0U; in light_hsl_set() local
1375 hue = net_buf_simple_pull_le16(buf); in light_hsl_set()
1388 .hsl_set.hue = hue, in light_hsl_set()
1414 if (srv->state->hue_range_min && hue < srv->state->hue_range_min) { in light_hsl_set()
1415 hue = srv->state->hue_range_min; in light_hsl_set()
1416 } else if (srv->state->hue_range_max && hue > srv->state->hue_range_max) { in light_hsl_set()
1417 hue = srv->state->hue_range_max; in light_hsl_set()
1419 srv->state->target_hue = hue; in light_hsl_set()
[all …]
/hal_espressif-2.7.6/examples/bluetooth/esp_ble_mesh/aligenie_demo/main/
Dboard.c70 void board_led_hsl(uint8_t elem_index, uint16_t hue, uint16_t saturation, uint16_t lightness) in board_led_hsl() argument
76 ESP_LOGD(TAG, "hue last state %d, state %d", last_hue, hue); in board_led_hsl()
80 if(last_hue != hue || last_saturation != saturation || last_lightness != lightness ) { in board_led_hsl()
81 last_hue = hue; in board_led_hsl()
Daligenie_demo.c256 static void light_color_set(uint16_t lightness, uint16_t hue, uint16_t saturation);
435 …ESP_LOGI(TAG, "hue: %d, saturation: %d, lightness: %d", p_elem->state.hue[VALUE_TYPE_CUR], p_elem-… in user_genie_event_handle()
436 …board_led_hsl(p_elem->elem_index, p_elem->state.hue[VALUE_TYPE_CUR], p_elem->state.saturation[VALU… in user_genie_event_handle()
481 uint16_t hue = *p_data++; in user_genie_event_handle() local
482 hue += (*p_data++ << 8); in user_genie_event_handle()
487 light_color_set(lightness, hue, saturation); in user_genie_event_handle()
563 …ESP_LOGI(TAG, "hsl tar(%d, %d, %d)", p_state->hue[VALUE_TYPE_TAR], p_state->saturation[VALUE_TYPE_… in bind_onoff_with_hsl()
697 static void light_color_set(uint16_t lightness, uint16_t hue, uint16_t saturation) in light_color_set() argument
700 ESP_LOGI(TAG, "hue: %d, saturation: %d, lightness: %d", hue, saturation, lightness); in light_color_set()
702 g_elem_state[0].state.hue[VALUE_TYPE_TAR] = hue; in light_color_set()
[all …]
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/api/models/include/
Desp_ble_mesh_lighting_model_api.h189 uint16_t hue; /*!< Target value of light hsl hue state */ member
207 uint16_t hue; /*!< Value of light hue default state */ member
416 uint16_t hue; /*!< Value of light hue default state */ member
931 uint16_t hue; /*!< The present value of Light HSL Hue state */ member
1290 uint16_t hue; /*!< The value of Light HSL Hue state */ member
1296 uint16_t hue; /*!< The value of Light HSL Hue state */ member
1307 uint16_t hue; /*!< The value of Light HSL Hue Default state */ member
1482 uint16_t hue; /*!< Target value of light hsl hue state */ member
1492 uint16_t hue; /*!< Target value of light hsl hue state */ member
1510 uint16_t hue; /*!< Value of light hue default state */ member
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/mesh_models/client/include/
Dlighting_client.h237 uint16_t hue; /* Value of light hue default state */ member
261 uint16_t hue; /* Target value of light hsl hue state */ member
277 uint16_t hue; /* Value of light hue default state */ member
/hal_espressif-2.7.6/examples/bluetooth/esp_ble_mesh/aligenie_demo/main/include/
Dboard.h34 void board_led_hsl(uint8_t elem_index, uint16_t hue, uint16_t saturation, uint16_t lightness);
/hal_espressif-2.7.6/examples/bluetooth/esp_ble_mesh/aligenie_demo/components/vendor_model/include/
Dgenie_mesh.h171 uint16_t hue[VALUE_TYPE_NUM]; member
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/mesh_models/client/
Dlighting_client.c463 status->hue = net_buf_simple_pull_le16(buf); in light_status()
916 net_buf_simple_add_le16(msg, set->hue); in light_set_state()
941 net_buf_simple_add_le16(msg, set->hue); in light_set_state()
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/api/
Desp_ble_mesh_defs.h2136 uint16_t hue; /*!< The value of the Light HSL Hue state */ member
2143 uint16_t hue; /*!< The value of the Light HSL Hue state */ member
/hal_espressif-2.7.6/tools/test_idf_monitor/tests/
Din2.txt31 D (309) light_driver: [light_init, 76]:hue: 360, saturation: 0, value: 100
1009 …4384","version":"0.5.25.1","characteristics":[[0,"on","int",7,1,0,1,1],[1,"hue","int",7,360,0,360,…