Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/examples/common_components/led_strip/
Dled_strip_rmt_ws2812.c101 ws2812_t *ws2812 = __containerof(strip, ws2812_t, parent); in ws2812_set_pixel() local
102 …STRIP_CHECK(index < ws2812->strip_len, "index out of the maximum number of leds", err, ESP_ERR_INV… in ws2812_set_pixel()
105 ws2812->buffer[start + 0] = green & 0xFF; in ws2812_set_pixel()
106 ws2812->buffer[start + 1] = red & 0xFF; in ws2812_set_pixel()
107 ws2812->buffer[start + 2] = blue & 0xFF; in ws2812_set_pixel()
116 ws2812_t *ws2812 = __containerof(strip, ws2812_t, parent); in ws2812_refresh() local
117 …STRIP_CHECK(rmt_write_sample(ws2812->rmt_channel, ws2812->buffer, ws2812->strip_len * 3, true) == … in ws2812_refresh()
119 return rmt_wait_tx_done(ws2812->rmt_channel, pdMS_TO_TICKS(timeout_ms)); in ws2812_refresh()
126 ws2812_t *ws2812 = __containerof(strip, ws2812_t, parent); in ws2812_clear() local
128 memset(ws2812->buffer, 0, ws2812->strip_len * 3); in ws2812_clear()
[all …]