Advertisement
Aichan

Untitled

May 16th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1.  void main()
  2.  {   
  3.   InitRobot();
  4.   P0b = 1;
  5.   while(P1b); //tant que le bouton poussoir n'est pas pressé
  6.   while(1)
  7.   {
  8.     P0b^=1; //on inverse l'état de la LED
  9.     Sleep(1000); //Et ce toutes les secondes
  10.   }
  11.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement