feat(v2): move web UI into v2, remove legacy MicroPython app
Move the web assets and templates under v2/web, drop the old src/, lib/ and scripts, and update firmware, tools, docs and db files. Add the audio page, LED test scripts and VPN autoconnect script. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6c16998691
commit
71bd320661
193 files changed
+5605
-18860
No files matched your search
@@ -0,0 +1 @@
|
||||
idf_component_register(SRCS "main.c" INCLUDE_DIRS ".")
|
||||
@@ -0,0 +1,2 @@
|
||||
dependencies:
|
||||
espressif/led_strip: "^2.5.0"
|
||||
@@ -0,0 +1,29 @@
|
||||
// Steady WS2812 signal on GPIO 10 for probing with a meter: the first 10 LEDs green, a frame
|
||||
// every 20 ms so the pin never idles. The data pin should read roughly 0.3-1 V DC against GND.
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
#include "led_strip.h"
|
||||
#include "esp_log.h"
|
||||
|
||||
#define LED_GPIO 10
|
||||
#define NUM_LEDS 200
|
||||
#define LIT 10
|
||||
|
||||
static const char *TAG = "led_test";
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
led_strip_handle_t strip;
|
||||
led_strip_config_t cfg = { .strip_gpio_num = LED_GPIO, .max_leds = NUM_LEDS };
|
||||
led_strip_rmt_config_t rmt = { .resolution_hz = 10 * 1000 * 1000 };
|
||||
ESP_ERROR_CHECK(led_strip_new_rmt_device(&cfg, &rmt, &strip));
|
||||
for (int i = 0; i < LIT; i++)
|
||||
led_strip_set_pixel(strip, i, 0, 120, 0);
|
||||
ESP_LOGI(TAG, "sending to GPIO %d continuously", LED_GPIO);
|
||||
for (unsigned n = 0;; n++) {
|
||||
led_strip_refresh(strip);
|
||||
if (n % 250 == 0)
|
||||
ESP_LOGI(TAG, "frames sent: %u", n);
|
||||
vTaskDelay(pdMS_TO_TICKS(20));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user