| ??? 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 |
| Topic | Author | Date |
| 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 |



