1
0
simavrphp/resources/blinky/blink.c

17 lines
210 B
C
Raw Permalink Normal View History

2024-07-30 11:01:26 +00:00
#ifndef F_CPU
#define F_CPU 1000000UL
#endif
#include <avr/io.h>
#include <util/delay.h>
int main(void) {
DDRB = 0b00000001;
while (1) {
PORTB = 0b00000001;
PORTB = 0b00000000;
}
return 0;
}