recieveController
recieveController.h@5:ccf493e265d1, 2017-12-07 (annotated)
- Committer:
- WAT34
- Date:
- Thu Dec 07 01:02:00 2017 +0900
- Revision:
- 5:ccf493e265d1
- Parent:
- 3:6287618256b5
merged
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
WAT34 | 0:57fc300625c4 | 1 | #ifndef RECIEVE_CONTROLLER_H |
WAT34 | 0:57fc300625c4 | 2 | #define RECIEVE_CONTROLLER_H |
WAT34 | 0:57fc300625c4 | 3 | |
WAT34 | 0:57fc300625c4 | 4 | #include "mbed.h" |
WAT34 | 5:ccf493e265d1 | 5 | #include <map> |
WAT34 | 0:57fc300625c4 | 6 | #include <string.h> |
WAT34 | 0:57fc300625c4 | 7 | #include <string> |
WAT34 | 0:57fc300625c4 | 8 | |
WAT34 | 0:57fc300625c4 | 9 | class recieveController { |
WAT34 | 0:57fc300625c4 | 10 | private: |
WAT34 | 0:57fc300625c4 | 11 | uint8_t id_; |
WAT34 | 0:57fc300625c4 | 12 | /* data */ |
WAT34 | 0:57fc300625c4 | 13 | Serial serial; |
WAT34 | 0:57fc300625c4 | 14 | |
WAT34 | 0:57fc300625c4 | 15 | public: |
WAT34 | 0:57fc300625c4 | 16 | recieveController (PinName tx,PinName rx,const uint8_t& id); |
WAT34 | 0:57fc300625c4 | 17 | void update(); |
WAT34 | 5:ccf493e265d1 | 18 | int buttons[7]; |
WAT34 | 0:57fc300625c4 | 19 | }; |
WAT34 | 0:57fc300625c4 | 20 | |
WAT34 | 0:57fc300625c4 | 21 | |
WAT34 | 0:57fc300625c4 | 22 | #endif /* end of include guard: RECIEVE_CONTROLLER_H */ |