Software UART program using Infra-Red LED and IR-Detector
Dependents: TestVirtualisation Bf_SoftSerial_IR
Diff: SoftSerial.cpp
- Revision:
- 11:a0029614de72
- Parent:
- 9:4e4617c4a441
--- a/SoftSerial.cpp Sat Jul 05 13:22:43 2014 +0000 +++ b/SoftSerial.cpp Tue Apr 12 16:58:22 2016 +0000 @@ -2,6 +2,7 @@ SoftSerial::SoftSerial(PinName TX, PinName RX, const char* name) { tx_en = rx_en = false; + read_buffer = 0; if (TX != NC) { tx = new DigitalOut(TX); tx_en = true;