jidan12
Newbie level 5
- Joined
- Oct 5, 2013
- Messages
- 8
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 58
HI,
I wrote code for LED blinking
start
turn ON LED
wait for some time (delay )
turn OFF LED
"LED" - 0 Error(s), 2 Warning(s).
this code with no error
this code will work ?
I wrote code for LED blinking
start
turn ON LED
wait for some time (delay )
turn OFF LED
Code:
// LED blinking c code
//start
//turn ON LED
// wait for some time (delay )
// turn OFF LED
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;
}
}
this code with no error
this code will work ?