1
0
mirror of synced 2024-11-22 09:14:24 +01:00
avr_demo/hello_world/firmware/main.c
2009-12-24 18:27:04 +02:00

17 lines
311 B
C

#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
/* Make PORTB5 (Arduino pin 13) an output. */
DDRB |= _BV(PORTB5);
for(;;){
/* Toggle state of PORTB5 (Arduino pin 13). */
PORTB ^= _BV(PORTB5);
_delay_ms(500);
}
/* Never reached. */
return 0;
}