更新灯带驱动
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
static ws2812_spi_led_strip_t *s_led_strip;
|
||||
static ws2812_spi_led_buf_t *s_led_strip;
|
||||
static uint32_t s_value;
|
||||
|
||||
SH_CMD_FN(set);
|
||||
@@ -22,9 +22,10 @@ SH_DEF_CMD(
|
||||
SH_SETUP_CMD("led", "操作灯带驱动", NULL, sub_led), //
|
||||
);
|
||||
|
||||
void ws2812_spi_shell_register(ws2812_spi_led_strip_t *led_strip)
|
||||
void ws2812_spi_shell_register(void)
|
||||
{
|
||||
s_led_strip = led_strip;
|
||||
ws2812_spi_led_strip_init(SPI2_HOST, CONFIG_LED_STRIP_MAX_LEDS);
|
||||
s_led_strip = ws2812_spi_led_new_buf(CONFIG_LED_STRIP_MAX_LEDS);
|
||||
sh_register_cmd(&_register_cmd);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user