gyo
Diff: SBDBT.h
- Revision:
- 6:da71294502ee
- Parent:
- 5:a4a994824c96
- Child:
- 7:30e05998769b
--- a/SBDBT.h Mon May 08 07:50:22 2017 +0000 +++ b/SBDBT.h Sun Aug 13 03:35:38 2017 +0000 @@ -2,9 +2,21 @@ #define INCLDUED_SBDBT_h_ #include "mbed.h" +#define MARU_ 0x4000 +#define BATU_ 0x2000 +#define SIKAKU_ 0x0001 +#define SANKAKU_ 0x1000 +#define L1_ 0x0002 +#define L2_ 0x0004 +#define R1_ 0x0008 +#define R2_ 0x0010 +#define UE_ 0x0100 +#define SITA_ 0x0200 +#define MIGI_ 0x0400 +#define HIDARI_ 0x0800 + namespace raven -{ - +{ class SBDBT { private: @@ -18,9 +30,12 @@ public: char readable; char *data; + char *data_p; SBDBT(PinName, PinName); SBDBT(PinName, PinName, int); void getf(); + int sw(); + void print(); char maru(); char batu(); char sikaku(); @@ -33,10 +48,14 @@ char sita(); char migi(); char hidari(); - char rs_x(); - char rs_y(); - char ls_x(); - char ls_y(); + 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(); };