Jasmine Karlsson
/
train_rail
New project
Diff: Switch.h
- Revision:
- 19:72b14c6cc845
- Child:
- 20:32ba0a5f2d02
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Switch.h Mon Jun 11 10:55:45 2018 +0000 @@ -0,0 +1,19 @@ +#ifndef SWITCH_H +#define SWITCH_H +#include "mbed.h" + +class Switch +{ + public: + Switch(unsigned int newaddress); + virtual ~Switch(); + + protected: + + private: + + unsigned int address; + bool enabled; +}; + +#endif // TRAIN_H