avrinput/main.c
2019-01-01 16:48:54 +01:00

20 lines
272 B
C

#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;
}