1
0
mirror of synced 2024-11-25 18:54:23 +01:00
avr_demo/hello_world/firmware/main.c

17 lines
311 B
C
Raw Normal View History

#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;
}