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