surtur
77a5ad2549
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)
24 lines
427 B
C++
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;
|
|
}
|