gyo
SBDBT.h
- Committer:
- gotto0
- Date:
- 2017-08-15
- Revision:
- 7:30e05998769b
- Parent:
- 6:da71294502ee
- Child:
- 8:f3e2b37e206f
File content as of revision 7:30e05998769b:
#ifndef INCLDUED_SBDBT_h_ #define INCLDUED_SBDBT_h_ #include "mbed.h" //data[1] //data[2] #define UE_ 0x01 #define SITA_ 0x02 #define MIGI_ 0x04 #define HIDARI_ 0x08 namespace raven { class SBDBT { private: char i; char length; char value; char position; char *tmp; Serial *sr; public: char readable; char *data; char *data_p; SBDBT(PinName, PinName); SBDBT(PinName, PinName, int); void getf(); void print(); char maru(); char batu(); char sikaku(); char sankaku(); char L1(); char L2(); char R1(); char R2(); char ue(); char sita(); char migi(); char hidari(); signed char rs_x(); signed char rs_y(); signed char ls_x(); signed char ls_y(); char rs_x_check(); char rs_y_check(); char ls_x_check(); char ls_y_check(); ~SBDBT(); }; }//namespace #endif