|
@ -26,19 +26,19 @@ void CLED::RemoveTrigger(){ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void CLED::TurnOn(){ |
|
|
void CLED::TurnOn(){ |
|
|
std::cout << "LED Turn On" << ledNumber << "on" << std::endl; |
|
|
|
|
|
|
|
|
std::cout << "LED Turn On: " << ledNumber << " on" << std::endl; |
|
|
RemoveTrigger(); |
|
|
RemoveTrigger(); |
|
|
WriteLED("/brightness", "1"); |
|
|
WriteLED("/brightness", "1"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void CLED::TurnOff(){ |
|
|
void CLED::TurnOff(){ |
|
|
std::cout << "LED Turn Off" << ledNumber << "off" << std::endl; |
|
|
|
|
|
|
|
|
std::cout << "LED Turn Off: " << ledNumber << " off" << std::endl; |
|
|
RemoveTrigger(); |
|
|
RemoveTrigger(); |
|
|
WriteLED("/brightness", "0"); |
|
|
WriteLED("/brightness", "0"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void CLED::BlinkLED(){ |
|
|
void CLED::BlinkLED(){ |
|
|
std::cout << "LED blinking" << ledNumber << "blinking" << std::endl; |
|
|
|
|
|
|
|
|
std::cout << "LED blinking: " << ledNumber << " blinking" << std::endl; |
|
|
WriteLED("/trigger", "timer"); |
|
|
WriteLED("/trigger", "timer"); |
|
|
WriteLED("/delay_on", "50"); |
|
|
WriteLED("/delay_on", "50"); |
|
|
WriteLED("/delay_off", "50"); |
|
|
WriteLED("/delay_off", "50"); |
|
@ -46,4 +46,4 @@ void CLED::BlinkLED(){ |
|
|
|
|
|
|
|
|
CLED::~CLED(){ |
|
|
CLED::~CLED(){ |
|
|
std::cout << "destroying LED " << path << std::endl; |
|
|
std::cout << "destroying LED " << path << std::endl; |
|
|
} |
|
|
|
|
|
|
|
|
} |