Funzioni di IO varie con seriale asincrona
Dependents: Nucleo_AsyncSerialIO
Fork of IOFuncLib by
Diff: IOFuncLib.cpp
- Revision:
- 12:0df187b0bfad
- Parent:
- 11:7c7848b76f06
- Child:
- 13:7871bb60d370
--- a/IOFuncLib.cpp Tue Aug 18 21:54:47 2015 +0000 +++ b/IOFuncLib.cpp Fri Sep 04 22:13:56 2015 +0000 @@ -1,5 +1,6 @@ #include "config.h" #include "IOFuncLib.h" +#include "BufferedSerial.h" #include "mbed.h" // FLASHER @@ -26,6 +27,9 @@ _pin = !_pin; } + + + // Screen Screen::Screen(Serial* ps) { @@ -113,6 +117,14 @@ } } +// ScreenAsync +ScreenAsync::ScreenAsync(BufferedSerial* bps) : Screen(Serial* ps) +{ + _bps=bps; +} + + + // general char* genFunctions::subchar(char* arr, int begin, int len)