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

◆ led_strip_new_spi_device()

esp_err_t led_strip_new_spi_device ( const led_strip_config_t * led_config,
const led_strip_spi_config_t * spi_config,
led_strip_handle_t * ret_strip )

Create LED strip based on SPI MOSI channel.

Note
Although only the MOSI line is used for generating the signal, the whole SPI bus can't be used for other purposes.
Parameters
led_configLED strip configuration
spi_configSPI specific configuration
ret_stripReturned LED strip handle
Returns
  • ESP_OK: create LED strip handle successfully
  • ESP_ERR_INVALID_ARG: create LED strip handle failed because of invalid argument
  • ESP_ERR_NOT_SUPPORTED: create LED strip handle failed because of unsupported configuration
  • ESP_ERR_NO_MEM: create LED strip handle failed because of out of memory
  • ESP_FAIL: create LED strip handle failed because some other error