#include <stdio.h>
#ifdef __WIN32__
#include <windows.h>
#else
#include <unistd.h>
#define Sleep( msec ) usleep(( msec ) * 1000 )
#endif
int main( void )
{
char s[ 256 ];
int pos;
int i;
uint8_t sn;
FLAGS_T state;
printf( "Waiting the EV3 brick online...\n" );
printf( "*** ( EV3 ) Hello! ***\n" );
printf( "Found servo motors:\n" );
for ( i = 0; i < DESC_LIMIT; i++ ) {
if ( ev3_servo[ i ].type_inx != SERVO_TYPE__NONE_ ) {
}
}
printf( "Servo motor is found, setting position...\n" );
do {
} while ( state );
printf( "position: %d\n", pos );
}
do {
} while ( state );
printf( "position: %d\n", pos );
}
} else {
printf( "Servo motor is NOT found\n" );
}
printf( "*** ( EV3 ) Bye! ***\n" );
return ( 0 );
}