New project

Dependencies:   mbed TextLCD

Revision:
20:32ba0a5f2d02
Parent:
19:72b14c6cc845
--- a/Switch.h	Mon Jun 11 10:55:45 2018 +0000
+++ b/Switch.h	Mon Jun 11 14:50:15 2018 +0000
@@ -1,19 +1,20 @@
 #ifndef SWITCH_H
 #define SWITCH_H
-#include "mbed.h"
+#include "Track.h"
 
-class Switch
+class Switch : public Track
 {
     public:
-        Switch(unsigned int newaddress);
+        Switch(const unsigned int newaddress, const unsigned int newinst);
         virtual ~Switch();
+        void switchOn(); 
+        void switchOff();
+        
 
     protected:
 
     private:
-
-    unsigned int address;
-    bool enabled;
+    int nrPacket;
 };
 
-#endif // TRAIN_H
+#endif // SWITCH_H