avrinput/main.c

20 lines
272 B
C
Raw Normal View History

2019-01-01 15:48:54 +00:00
#include "time.h"
#include "usart.h"
#include <util/delay.h>
int main(void)
{
time_init();
usart_init();
while(1)
{
_delay_ms(1000);
unsigned int eigentime = get_eigentime();
usart_putc((char) eigentime);
usart_putc((char)(eigentime >> 8));
}
return 0;
}