Browse Source

Actualizar 'led.cpp'

master
dllamas 2 years ago
parent
commit
a80c853791
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      led.cpp

+ 5
- 1
led.cpp View File

@ -67,7 +67,11 @@ int main(int argc, char* argv[]){
if(cmd=="on")leds[i].TurnOn();
else if(cmd=="off")leds[i].TurnOff();
else if(cmd=="blink")leds[i].blink();
else{std::cout << "comando invalido" << std::endl;}
else{std::cout << "comando invalido" << std::endl;
std::cout << "Para encender el LED utilice: ./leds on" << std::endl;
std::cout << "Para apagar el LED utilice: ./leds off" << std::endl;
std::cout << "Para hacer parpadear el LED utilice: sudo ./leds blink" << std::endl;
}
}
std::cout << "programa terminado" << std::endl;
return 0;


Loading…
Cancel
Save