MCPcopy Create free account
hub / github.com/HomeSpan/HomeSpan / DEV_LED

Method DEV_LED

examples/10-RGB_LED/DEV_LED.h:11–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 SpanCharacteristic *power; // reference to the On Characteristic
10
11 DEV_LED(int ledPin) : Service::LightBulb(){ // constructor() method
12
13 power=new Characteristic::On();
14 this->ledPin=ledPin;
15 pinMode(ledPin,OUTPUT);
16
17 Serial.print("Configuring On/Off LED: Pin="); // initialization message
18 Serial.print(ledPin);
19 Serial.print("\n");
20
21 } // end constructor
22
23 boolean update(){ // update() method
24

Callers

nothing calls this directly

Calls 1

printMethod · 0.45

Tested by

no test coverage detected