添加支持多个RGB灯显示
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "led_strip_encoder.h"
|
||||
#include "esp_log.h"
|
||||
#include "driver/rmt_tx.h"
|
||||
@@ -16,6 +17,7 @@
|
||||
#define EXAMPLE_LED_NUMBERS 2
|
||||
#define EXAMPLE_CHASE_SPEED_MS 10
|
||||
|
||||
#define WORD_TIME_MS 50
|
||||
// static const char *TAG = "example";
|
||||
|
||||
extern rmt_channel_handle_t led_chan;
|
||||
@@ -32,7 +34,7 @@ typedef struct rgb_color_s
|
||||
uint8_t toggle_flag;
|
||||
uint8_t color_cnt;
|
||||
uint8_t colortoggle_speed;
|
||||
|
||||
uint8_t color_type;
|
||||
}rgb_color_t;
|
||||
|
||||
typedef enum
|
||||
@@ -53,8 +55,10 @@ void led_strip_init(void);
|
||||
void led_strip_set_pixel(uint8_t pin, uint8_t index, uint8_t green, uint8_t blue, uint8_t red);
|
||||
void work_rgb_led_start(void);
|
||||
void _work_rgb_led(void *arg);
|
||||
void rgb_update_cyle(uint16_t cyle);
|
||||
void rgb_toggle(rgb_color_t* rgb_color);
|
||||
void rgb_update_cyle(uint8_t index, uint16_t cyle);
|
||||
void rgb_toggle(uint8_t index, rgb_color_t* rgb_color);
|
||||
void rgb_color_change(uint8_t index, uint8_t color);
|
||||
void rgb_Indicator_light_on(uint8_t index, uint8_t color, uint16_t cyle);
|
||||
void rgb_Indicator_light_off(uint8_t index);
|
||||
void rgb_Indicator_light_off(uint8_t index);
|
||||
|
||||
void breathing_color_change(uint8_t index, rgb_color_t* rgb_color);
|
||||
Reference in New Issue
Block a user