/* sample.c, random IC program */
/*  */
/* function: waits for a digital switch inserted into port 7 to be pressed, */
/*           then turns on motor 3           */
 

void main()
{

  motor(3, 0);

  printf("Hi, push my button.\n");
  
  while (digital(7)==0) { }
                                     /* empty while... waits here
                                         until button is pressed and
                                            digital(7)==1 */
  printf("Let's go!\n");

  motor(3, 100);

}





