Add UART LED_RING command for progress bar, digits, and clear.
Stop the main-loop digit demo so host-driven display persists; expose clear/progress/digit modes with RGB and intensity via protobuf and goTool. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+4
-10
@@ -6,6 +6,7 @@
|
||||
#include "cmd_version.h"
|
||||
#include "cmd_ota.h"
|
||||
#include "cmd_ota_slave_progress.h"
|
||||
#include "cmd_led_ring.h"
|
||||
#include "esp_now_comm.h"
|
||||
#include "powerpod.h"
|
||||
#include "driver/gpio.h"
|
||||
@@ -168,20 +169,13 @@ void app_main(void) {
|
||||
cmd_client_info_register();
|
||||
cmd_accel_deadzone_register();
|
||||
cmd_espnow_unicast_test_register();
|
||||
cmd_led_ring_register();
|
||||
cmd_ota_register();
|
||||
cmd_ota_slave_progress_register();
|
||||
}
|
||||
|
||||
uint8_t current_digit = 10;
|
||||
ESP_LOGI(TAG, "LED ring: UART LED_RING commands only (no local demo loop)");
|
||||
while (1) {
|
||||
led_command_t cmd = {.mode = LED_CMD_SET_DIGIT,
|
||||
.value = current_digit,
|
||||
.r = 5,
|
||||
.g = 5,
|
||||
.b = 0};
|
||||
|
||||
led_ring_send_command(&cmd);
|
||||
current_digit = (current_digit + 1) % 11;
|
||||
vTaskDelay(pdMS_TO_TICKS(500));
|
||||
vTaskDelay(portMAX_DELAY);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user