Software Serial lib

Dependents:   BufferedSoftSerial

Fork of SoftSerial by João Sousa

Revision:
11:2d4a883a687a
Parent:
10:236fce2e5b8c
--- a/SoftSerial_rx.cpp	Sat Jul 05 13:22:43 2014 +0000
+++ b/SoftSerial_rx.cpp	Sat May 16 21:40:11 2015 +0000
@@ -1,5 +1,6 @@
 #include "SoftSerial.h"
 
+DigitalOut myled(LED1);
 uint32_t overhead_us = 200 * 1000000 / SystemCoreClock;         //Random estimation of the overhead of mbed libs, makes slow devices like LPC812 @ 12MHz perform better
 
 int SoftSerial::_getc( void ) {
@@ -19,10 +20,12 @@
     rx->fall(NULL);
     rx_bit = 0;
     rx_error = false;
+    myled = 1;
 };    
 
 void SoftSerial::rx_handler(void) {
     //Receive data
+    myled = 0;
     int val = rx->read();
  
     rxticker.setNext(bit_period);