Fixing Airwire Errors
Trace 1322), still tied to C1:P1. I’m cleaning that local segment and re-checking again.Waiting for input
Table
| Function | ESP32 GPIO | Schematic Net | Notes |
|---|---|---|---|
| Top/shade LED ring | GPIO12 | GPIO12_TOP_RAW -> AHCT -> TOP_DIN | Strapping pin; do not externally pull high at reset. |
| Bottom/base LED ring | GPIO14 | GPIO14_BOT_RAW -> AHCT -> BOT_DIN | Independent chain. |
| UART TX0 | GPIO1 | UART_TX0 | Programming/debug pad. |
| UART RX0 | GPIO3 | UART_RX0 | Programming/debug pad. |
| Boot | GPIO0 | ESP_GPIO0_BOOT | Pull-up plus BOOT switch to GND. |
| Reset | EN | ESP_EN | Pull-up, 1 uF delay cap, RESET switch to GND. |
Ini
[env:esp32dev] platform = espressif32 board = esp32dev framework = arduino monitor_speed = 115200 lib_deps = fastled/FastLED@^3.7.0
Cpp
#include <Arduino.h> #include <WiFi.h> #include <FastLED.h> #define TOP_LED_PIN 12 #define BOT_LED_PIN 14 #define TOP_LED_COUNT 16 #define BOT_LED_COUNT 16 #define SERIAL_BAUD 115200 // SK6812 RGBW is represented here with FastLED RGB ordering for initial bring-up. // For true RGBW/Warm White control in LampOS, use an RGBW-capable SK6812 driver. CRGB topRing[TOP_LED_COUNT]; CRGB botRing[BOT_LED_COUNT]; const char* WIFI_SSID = "YOUR_SSID"; const char* WIFI_PASS = "YOUR_PASSWORD"; uint8_t globalBrightness = 32; // conservative default for current limiting unsigned long lastPatternMs = 0; uint8_t hue = 0; void initWiFi() { WiFi.mode(WIFI_STA); WiFi.begin(WIFI_SSID, WIFI_PASS); Serial.print("WiFi connecting"); for (int i = 0; i < 20 && WiFi.status() != WL_CONNECTED; ++i) { delay(250); Serial.print('.'); } if (WiFi.status() == WL_CONNECTED) { Serial.printf("\nWiFi connected: %s\n", WiFi.localIP().toString().c_str()); } else { Serial.println("\nWiFi not connected; continuing offline"); } } void setCurrentLimitMode(uint16_t sourceMilliAmps) { // Approximate firmware limiter. Tune in LampOS using actual RGBWW driver current model. if (sourceMilliAmps <= 500) globalBrightness = 8; else if (sourceMilliAmps <= 1000) globalBrightness = 20; else if (sourceMilliAmps <= 1500) globalBrightness = 40; else globalBrightness = 80; // still below full power FastLED.setBrightness(globalBrightness); Serial.printf("Brightness limit set to %u for %u mA source\n", globalBrightness, sourceMilliAmps); } void initLeds() { FastLED.addLeds<SK6812, TOP_LED_PIN, GRB>(topRing, TOP_LED_COUNT); FastLED.addLeds<SK6812, BOT_LED_PIN, GRB>(botRing, BOT_LED_COUNT); setCurrentLimitMode(3000); fill_solid(topRing, TOP_LED_COUNT, CRGB::Black); fill_solid(botRing, BOT_LED_COUNT, CRGB::Black); FastLED.show(); } void showBringupPattern() { fill_rainbow(topRing, TOP_LED_COUNT, hue, 8); fill_rainbow(botRing, BOT_LED_COUNT, hue + 64, 8); FastLED.show(); hue++; } void setup() { Serial.begin(SERIAL_BAUD); delay(200); Serial.println("LampOS RGBWW Controller bring-up firmware"); Serial.println("GPIO12 = top/shade ring, GPIO14 = bottom/base ring"); initLeds(); initWiFi(); } void loop() { const unsigned long now = millis(); if (now - lastPatternMs >= 50) { lastPatternMs = now; showBringupPattern(); } if (WiFi.status() != WL_CONNECTED) { static unsigned long lastReconnect = 0; if (now - lastReconnect > 10000) { lastReconnect = now; initWiFi(); } } }
pio runpio run -t uploadpio device monitorPlatform & Toolchain
Pin Mapping
platformio.ini
Complete Arduino Starter Source
Build & Flash
Notes