Skip to content

Instantly share code, notes, and snippets.

@Aluriak
Created December 19, 2011 09:12
Show Gist options
  • Save Aluriak/1496237 to your computer and use it in GitHub Desktop.
Save Aluriak/1496237 to your computer and use it in GitHub Desktop.
NXC : Tom
void carre(int dist) {
int i;
for(i=0;i<4;i++){
RotateMotor(OUT_BC, 75 ,360*dist); // fait avancer le shmilblick en faisant rotater les deux bousins
RotateMotorEx(OUT_BC,75,540,-100, true, false); // fait tourner le bousin
}
}
task main() {
carre(1);
carre(2);
carre(3);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment