MFRC522/lib/usart/test/main.cpp

22 lines
334 B
C++

#include <avr/io.h>
#include <avr/interrupt.h>
#include "../src/usart.h"
#include <util/delay.h>
int main (void) {
DDRD |= (1<<PD3)|(1<<PD4)|(1<<PD5);
usart::init(9600);
for (;;) {// Loop forever
usart::put('A');
//printf("Hello");
PORTD ^= (1<<PD3)|(1<<PD4)|(1<<PD5);
_delay_ms(1000);
}
}