1
0
simavrphp/resources/blinky2/blink.c

19 lines
250 B
C
Raw 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;
_delay_ms(500);
PORTB = 0b00000000;
_delay_ms(500);
}
return 0;
}