#include #include #include #include uint8_t buffer[256]; uint8_t head=0; uint8_t tail=0; unsigned char noids[16]; unsigned char noids_index; unsigned char flop; char a; char sel; char o1; void usart_putc(unsigned char c) { // wait until UDR ready //while(!(UCSR0A & (1 << UDRE0))); UDR0 = c; // send character } void delay(int del) { int del1, del2, count; for(count=0;count