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