recieveController
recieveController.h@0:57fc300625c4, 2017-09-01 (annotated)
- Committer:
- WAT34
- Date:
- Fri Sep 01 11:18:24 2017 +0900
- Revision:
- 0:57fc300625c4
- Child:
- 1:445486d27613
- Child:
- 2:ead1b55ec5f0
first commit
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 | 0:57fc300625c4 | 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 | 0:57fc300625c4 | 18 | int buttons[5]; |
WAT34 | 0:57fc300625c4 | 19 | }; |
WAT34 | 0:57fc300625c4 | 20 | |
WAT34 | 0:57fc300625c4 | 21 | |
WAT34 | 0:57fc300625c4 | 22 | #endif /* end of include guard: RECIEVE_CONTROLLER_H */ |