Funzioni di IO varie con seriale asincrona

Dependents:   Nucleo_AsyncSerialIO

Fork of IOFuncLib by Max Scordamaglia

Revision:
1:58f3784ad68e
Parent:
0:f401aa69861a
Child:
2:8e723d99838e
--- a/IOFuncLib.h	Sat May 23 00:40:49 2015 +0000
+++ b/IOFuncLib.h	Sun May 24 10:27:24 2015 +0000
@@ -1,18 +1,33 @@
 #ifndef IOFUNCLIB_H
 #define IOFUNCLIB_H
- 
+
 #include "mbed.h"
- 
-class Flasher {
+
+class Flasher
+{
 public:
     Flasher(PinName pin);
     void flash(int n);
     void onOff(bool n);
     void notPin();
-  
-private:  
+
+private:
     DigitalOut _pin;
 };
- 
+
+
+class Screen
+{
+public:
+    Screen(Serial* ps);
+    void banner();
+    void pressed();
+    
+private:
+    /**
+     * Receive bytes from the serial port and store it into the receive queue.
+     */
+    Serial* _ps;
+};
+
 #endif
- 
\ No newline at end of file