#include #include "MyroC.h" int main() { rConnect("/dev/rfcomm0"); Picture pics[3]; /* This is an array of pictures. Picture is a type just like char and int, but it is for storing Scribbler pictures. */ int i; const char * name = "Here is your current picture!"; double duration = 10.0; for (i = 0; i < 3; i++) { pics[i] = rTakePicture(); rTurnRight (.5, 1); /* rDisplayPicture (&pics[i], duration, name); printf ("This is a blocking call.\n"); printf ("This means that the old picture will be displayed \n"); printf (" until the indicated time expires. \n"); printf ("After the time expires, processing moves \n"); printf (" to the next command.\n"); */ /* rDisplayPicture (&pics[i], -1.0 * duration, name); printf("This is a non-blocking call.\n"); printf ("This means that the new picture is shown even \n"); printf ("if the old picture is displayed. \n"); printf ("The windows will just pop on top of one another.\n"); printf ("Relax, and enjoy the photos!\n"); */ } rDisconnect(); return 0; }