Update 'led.c'
This commit is contained in:
parent
b965402461
commit
8afa37d3e9
1 changed files with 3 additions and 3 deletions
6
led.c
6
led.c
|
@ -5,15 +5,15 @@
|
|||
|
||||
int main (void)
|
||||
{
|
||||
/* set pin 5 of PORTB for output*/
|
||||
/* set pin 4 of PORTB for output*/
|
||||
DDRB |= _BV(DDB4);
|
||||
|
||||
while(1) {
|
||||
/* set pin 5 high to turn led on */
|
||||
/* set pin 4 high to turn led on */
|
||||
PORTB |= _BV(PORTB4);
|
||||
_delay_ms(BLINK_DELAY_MS);
|
||||
|
||||
/* set pin 5 low to turn led off */
|
||||
/* set pin 4 low to turn led off */
|
||||
PORTB &= ~_BV(PORTB4);
|
||||
_delay_ms(BLINK_DELAY_MS);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue