mpc_cv6_leds/main.cpp

24 lines
427 B
C++
Raw Normal View History

2020-12-11 16:42:14 +01:00
#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");
2020-12-11 16:42:14 +01:00
LEDS_GreenOff();
system("sleep 1");
LEDS_BlueOff();
system("sleep 1");
2020-12-11 16:42:14 +01:00
}
return 0;
}