重构项目配置并添加对 SBDEMO 的支持
更新多个 ESP32 芯片(C2、C3、S3) 的版本配置为 SBDEMO 产品添加新的配置文件实现板卡和应用程序配置模块添加 CRC 实用函数修改系统日志以支持动态日志控制更新 Kconfig 和 sdkconfig 的默认设置以适应新产品
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
#include "ws2812_spi.h"
|
||||
#include "shell/sh.h"
|
||||
#include "sh_vset.h"
|
||||
|
||||
#include <string.h>
|
||||
#include "hal/spi_types.h"
|
||||
|
||||
static ws2812_spi_led_buf_t *s_led_strip;
|
||||
static uint32_t s_value;
|
||||
@@ -24,9 +23,11 @@ SH_DEF_CMD(
|
||||
|
||||
void ws2812_spi_shell_register(void)
|
||||
{
|
||||
#if defined(CONFIG_LED_STRIP_MAX_LEDS)
|
||||
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);
|
||||
#endif
|
||||
}
|
||||
|
||||
void ws2812_spi_shell_unregister(void)
|
||||
|
||||
Reference in New Issue
Block a user