#include #include #include // Calculate the time per bit (-14 clock cycles) #define BAUD_RATE 115200 #define US_PER_BIT 1e6/BAUD_RATE-14e6/F_CPU #if F_CPU/BAUD_RATE<32 #warning BAUD_RATE is to high for this CPU clock frequency #endif // Send a single character or byte. void softSerial_sendChar(char c) { cli(); // Send start bit PORTD &= ~(1<>1; } // Send 2 stop bits PORTD |= (1<