maybe this helps:

Code:
while (1)
{
   if (key_space) 
   {
      strobo();
      while (key_space)  wait(1); // wait here untill key_space = 0, strobo() would be call only one time.
   }
   wait(1);
}


Last edited by Widi; 05/03/09 19:42.