ledvu small changes & update plugin

This commit is contained in:
philippe44
2023-08-14 17:14:54 -07:00
parent af8db69030
commit 4047fa2331
4 changed files with 7 additions and 7 deletions

View File

@@ -39,14 +39,14 @@ static const char *TAG = "led_vu";
#define max(a,b) (((a) > (b)) ? (a) : (b))
struct led_strip_t* led_display = NULL;
static struct led_strip_t led_strip_config = {
static EXT_RAM_ATTR struct led_strip_t led_strip_config = {
.rgb_led_type = RGB_LED_TYPE_WS2812,
.rmt_channel = RMT_CHANNEL_1,
.rmt_interrupt_num = LED_VU_RMT_INTR_NUM,
.gpio = GPIO_NUM_22,
};
static struct {
static EXT_RAM_ATTR struct {
int gpio;
int length;
int vu_length;

View File

@@ -123,4 +123,4 @@ bool are_statistics_enabled();
const rotary_struct_t * config_rotary_get();
esp_err_t config_rotary_set(rotary_struct_t * rotary);
const ledvu_struct_t * config_ledvu_get();
esp_err_t config_ledvu_set(ledvu_struct_t * rotary);
esp_err_t config_ledvu_set(ledvu_struct_t * ledvu);

View File

@@ -32,7 +32,7 @@ const struct adac_s dac_external = { "i2s", init, adac_deinit, power, speaker, h
static cJSON *i2c_json;
static int i2c_addr;
static struct {
static const struct {
char *model;
bool mclk;
char *controlset;