Browse Source

Minor changes

master
Gustavo Martinez 2 years ago
parent
commit
0a5a674f4d
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      led.cpp

+ 4
- 4
led.cpp View File

@ -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;
}
}

Loading…
Cancel
Save