From 3fb41c25d43eb0fcedd737dc246ad34b566d0550 Mon Sep 17 00:00:00 2001 From: sieja Date: Tue, 22 Jul 2025 16:18:09 +0200 Subject: [PATCH] Uproszczenie dodanie info o podlaczaniu --- ESP32/06-DimmableLED/06-DimmableLED.ino | 10 +++------ ESP32/06-DimmableLED/DEV_LED.h | 29 ------------------------- 2 files changed, 3 insertions(+), 36 deletions(-) diff --git a/ESP32/06-DimmableLED/06-DimmableLED.ino b/ESP32/06-DimmableLED/06-DimmableLED.ino index 967f4c0..5bad2b0 100644 --- a/ESP32/06-DimmableLED/06-DimmableLED.ino +++ b/ESP32/06-DimmableLED/06-DimmableLED.ino @@ -61,14 +61,10 @@ void setup() { homeSpan.setPairingCode("11122333"); homeSpan.setQRID("111-22-333"); - homeSpan.begin(Category::Lighting,"HomeSpan LED"); - - new SpanAccessory(); - - new Service::AccessoryInformation(); - new Characteristic::Identify(); +// konfiguracja WIFI przez port szerefowy "WledPin=ledPin; - pinMode(ledPin,OUTPUT); - - } // end constructor - - boolean update(){ // update() method - - digitalWrite(ledPin,power->getNewVal()); - - return(true); // return true - - } // update -}; - -////////////////////////////////// - // Here's the new code defining DEV_DimmableLED - changes from above are noted in the comments struct DEV_DimmableLED : Service::LightBulb { // Dimmable LED