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