vead
Full Member level 5
- Joined
- Nov 27, 2011
- Messages
- 285
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 1,298
- Location
- india
- Activity points
- 3,815
HI
I wrote code for LED blinking
LED blinking c code
start
turn ON LED
wait for some time (delay )
turn OFF LED
there is no error but I am not sure that code will be work ?
"LED" - 0 Error(s), 2 Warning(s).
I wrote code for LED blinking
LED blinking c code
start
turn ON LED
wait for some time (delay )
turn OFF LED
Code:
include<regx51.h> // header file for 8051
include<delay.h> // header file for delay
#define LED_ON 00000001 // LED ON
#define LED_off 00000000 // LED OFF
void main() //main function starts
{
while (1) //infinite loop
{
setb P1_1=00000001;
delay (1000);
setb P1_1=00000000;
}
}
"LED" - 0 Error(s), 2 Warning(s).