#include <avr/io.h>
#include <util/delay.h>
#include "uart_ints.h"
#include "morse.h"

int main( void ){

    
    uart_init();
    morse_init();

    morse_sendc('O');
    morse_sendc('K');

    //LOOP FOREVER
    while(1){
        if (uart_available()) {
            char readByte = uart_getc();
            morse_sendc(readByte);
            uart_putc(readByte);
        }
    }



    return(0);

}

