recieveController

Dependents:   hayatoShooter

Committer:
WAT34
Date:
Thu Dec 07 00:58:33 2017 +0900
Revision:
3:6287618256b5
Parent:
2:ead1b55ec5f0
Parent:
1:445486d27613
Child:
5:ccf493e265d1
marged

Who changed what in which revision?

UserRevisionLine numberNew 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 <string.h>
WAT34 0:57fc300625c4 6 #include <string>
WAT34 0:57fc300625c4 7
WAT34 0:57fc300625c4 8 class recieveController {
WAT34 0:57fc300625c4 9 private:
WAT34 0:57fc300625c4 10 uint8_t id_;
WAT34 0:57fc300625c4 11 /* data */
WAT34 0:57fc300625c4 12 Serial serial;
WAT34 2:ead1b55ec5f0 13 int buttons;
WAT34 2:ead1b55ec5f0 14 uint8_t analogs[4];
WAT34 0:57fc300625c4 15
WAT34 0:57fc300625c4 16 public:
WAT34 0:57fc300625c4 17 recieveController (PinName tx,PinName rx,const uint8_t& id);
WAT34 0:57fc300625c4 18 void update();
WAT34 2:ead1b55ec5f0 19 int getButtons();
WAT34 2:ead1b55ec5f0 20 uint8_t getAnalog(const uint8_t& index);
WAT34 0:57fc300625c4 21 };
WAT34 0:57fc300625c4 22
WAT34 0:57fc300625c4 23
WAT34 0:57fc300625c4 24 #endif /* end of include guard: RECIEVE_CONTROLLER_H */