|
Koutek AVR -
|
|
Napsal uĹživatel radioklub.cz
|
|
StĹeda, 22 Äerven 2011 21:01 |
|
.
.
Untitled
#include <avr/io.h> #include <avr/interrupt.h> #define LED 0b01110101; ISR(TIMER0_OVF_vect) {
PORTB = ~PORTB; }
int main (void) {
TIMSK = 0b00000001; sei(); TCCR0 = 5; DDRB = 0xff; PORTB = LED; while (1) {
; }}
|