Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/06/04 12:03
Read: times


 
#64118 - RE: re:flash a led???
Responding to: ???'s previous message
Maria,

Try this code in your program:

while(1)
{
while(SWITCH) //Switch pressed
{
LED=1; //Turn on LED
delay1sec();
LED=0 ; //Turn off LED
delay1sec();
}
BUZZER=1; //Turn off BUZZER
BUZZER=0; //Turn on BUZZER
}

Don't forget about the switch debouncing.

Regards,
George

List of 20 messages in thread
TopicAuthorDate
re:flash a led???            01/01/70 00:00      
   RE: re:flash a led???            01/01/70 00:00      
   RE: re:flash a led???            01/01/70 00:00      
   RE: re:flash a led???            01/01/70 00:00      
   RE: re:flash a led???            01/01/70 00:00      
      RE: re:flash a led???            01/01/70 00:00      
         RE: re:flash a led???            01/01/70 00:00      
         RE: re:flash a led???            01/01/70 00:00      
            RE: re:flash a led???            01/01/70 00:00      
            RE: re:flash a led???            01/01/70 00:00      
               RE: re:flash a led???            01/01/70 00:00      
                  RE: re:flash a led???            01/01/70 00:00      
                     RE: re:flash a led???            01/01/70 00:00      
                        RE: re:flash a led???            01/01/70 00:00      
                        RE: Connecting the LED            01/01/70 00:00      
                        RE: Connecting the Buzzer            01/01/70 00:00      
                        RE: Connecting Switches            01/01/70 00:00      
                           RE: Connecting Switches            01/01/70 00:00      
                              RE: Connecting Switches            01/01/70 00:00      
                              Your LED driver is a misconstruction!            01/01/70 00:00      

Back to Subject List