mpc_cv6_leds/main.cpp
surtur 77a5ad2549
feat: add prototypes+functions for moar LED blinks
yes. moar.
* also for now remove the built-in delay() function callsas it's doing
  pretty much nothing and use system() to call OS sleep command (works
  on GNU/Linux)
2020-12-11 17:12:44 +01:00

24 lines
427 B
C++

#include <iostream>
#include "simul_kl25z.h" // simulator
#include "leds.h" // nas hlavickovy soubor - ovladac LED.
using namespace std;
int main()
{
LEDS_Init();
// blikani LED
while(1) {
LEDS_GreenOn();
system("sleep 1");
LEDS_BlueOn();
system("sleep 1");
LEDS_GreenOff();
system("sleep 1");
LEDS_BlueOff();
system("sleep 1");
}
return 0;
}