Programa 2
Objetivo:Asignar un periodo y mover el motor con diferentes instrucciones
motor[P1]=80;
wait1Msec(segundos*1000);
motor[P1]=0;
wait1Msec(1000);
motor[P1]=-80;
wait1Msec(segundos*1000);
motor[P1]=0;
Objetivo:Asignar un periodo y mover el motor con diferentes instrucciones
- Se abre el programa
- Se asigna un numero al int
- Se asigna un periodo al while
- Programa:
motor[P1]=80;
wait1Msec(segundos*1000);
motor[P1]=0;
wait1Msec(1000);
motor[P1]=-80;
wait1Msec(segundos*1000);
motor[P1]=0;
Comentarios
Publicar un comentario