//UART Example for inclass coding //Roger Traylor 12.4.12 //Connect two mega128 boards via rs232 and they should send to each //other a message and a sequence number. // //Change the message you send to your partner for checkoff. // //You can test this code by a "loopback" if you connect rx to tx //on the DB9 connector. // #include #include #include #include "uart_functions.h" #include "hd44780.h" #include #include uint8_t i; volatile uint8_t rcv_rdy; char rx_char; char lcd_str_array[16]; //holds string to send to lcd uint8_t send_seq=0; //transmit sequence number char lcd_string[3]; //holds value of sequence number void spi_init(void){ DDRB = DDRB | 0x07; //Turn on SS, MOSI, SCLK pins SPCR |= (1<