#include #include #include // Calculate the time per bit #define BAUD_RATE 115200 #define US_PER_BIT 1000000/BAUD_RATE // Send a single character or byte. void softSerial_sendChar(char c) { cli(); // Send start bit PORTD &= ~(1<>1; } // Send 2 stop bits PORTD |= (1<