Exemple #1
0
void drawSquare()
{
  int i = 0;
  while( i < 4 )
  {
    Forward40cm();
    Right90deg();
    i++;
  }
}
Exemple #2
0
task main(){
  //Right90deg();
  init();
  wait10Msec(100);
  Forward40cm();
  chill();
  Left90deg();
  chill();
  Forward40cm();
  chill();
  Left90deg();
  chill();
  Forward40cm();
  chill();
  Left90deg();
  chill();
  Forward40cm();
  chill();
  Left90deg();
  motor[rightWheel] = 0;
  motor[leftWheel] = 0;
  wait10Msec(500);
}