#include <iostream>
using namespace std;
#ifdef __WIN32__
#include <windows.h>
#else
#include <unistd.h>
#define Sleep( msec ) usleep(( msec ) * 1000 )
#endif
int main( void )
{
uint8_t sn;
cout << "Waiting the EV3 brick online..." << endl;
cout << "*** ( EV3 ) Hello! ***" << endl;
cout << "LEGO_EV3_L_MOTOR is found, run forever..." << endl;
cout << "wait 5 sec..." << endl;
Sleep( 5000 );
Sleep( 500 );
cout << "run to relative position..." << endl;
Sleep( 500 );
cout << "again..." << endl;
Sleep( 500 );
cout << "reversed run..." << endl;
Sleep( 500 );
cout << "again..." << endl;
Sleep( 500 );
} else {
cout << "LEGO_EV3_L_MOTOR is NOT found." << endl;
}
cout << "*** ( EV3 ) Bye! ***" << endl;
return ( 0 );
}