Software serial, for when you are out of serial pins

Dependents:   BufferedSoftSerial neurGAI_Seeed_BLUETOOTH LPC-SD-35 ESP-WROOM-02_test ... more

Revision:
2:9e01a38606b4
Parent:
1:f8b4b764ace7
Child:
3:7238e9bb74d2
--- a/SoftSerial.h	Sat Apr 26 15:13:01 2014 +0000
+++ b/SoftSerial.h	Sat Apr 26 16:21:42 2014 +0000
@@ -86,7 +86,7 @@
     
     bool tx_en, rx_en;
     int bit_period;
-    int _bits, _stop_bits;
+    int _bits, _stop_bits, _total_bits;
     Parity _parity;
     
     void rx_gpio_irq_handler(void);
@@ -99,7 +99,7 @@
     
     //tx
     void tx_handler(void);
-    inline int get_bit(int bit);
+    void prepare_tx(int c);
     Timeout txout;
     int _char;
     volatile int tx_bit;