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