FastLED 3.9.15
Loading...
Searching...
No Matches

◆ led_strip_set_pixel_hsv()

esp_err_t led_strip_set_pixel_hsv ( led_strip_handle_t strip,
uint32_t index,
uint16_t hue,
uint8_t saturation,
uint8_t value )

Set HSV for a specific pixel.

Parameters
stripLED strip
indexindex of pixel to set
huehue part of color (0 - 360)
saturationsaturation part of color (0 - 255, rescaled from 0 - 1. e.g. saturation = 0.5, rescaled to 127)
valuevalue part of color (0 - 255, rescaled from 0 - 1. e.g. value = 0.5, rescaled to 127)
Returns
  • ESP_OK: Set HSV color for a specific pixel successfully
  • ESP_ERR_INVALID_ARG: Set HSV color for a specific pixel failed because of an invalid argument
  • ESP_FAIL: Set HSV color for a specific pixel failed because other error occurred