![](/media/cache/profiles/5f14615696649541a025d3d0f8e0447f.jpg.50x50_q85.jpg)
iOSのBLEコントローラアプリ「RCBController」と接続し、コントローラの操作を取得するサンプルプログラムです。 mbed HRM1017で動作を確認しています。 2014.08.20時点でのBLEライブラリに対応しました。
Fork of BLE_RCBController by
RCBController.h
- Committer:
- jksoft
- Date:
- 2014-07-10
- Revision:
- 0:8c643bfe55b7
- Child:
- 1:48f6e08a3ac2
File content as of revision 0:8c643bfe55b7:
typedef union { struct { unsigned UP : 1; unsigned DOWN : 1; unsigned RIGHT : 1; unsigned LEFT : 1; unsigned Y : 1; unsigned A : 1; unsigned B : 1; unsigned X : 1; unsigned L1 : 1; unsigned L2 : 1; unsigned R1 : 1; unsigned R2 : 1; unsigned START : 1; unsigned SERECT : 1; unsigned space : 2; unsigned LeftAnalogLR:8; unsigned LeftAnalogUD:8; unsigned RightAnalogLR:8; unsigned RightAnalogUD:8; unsigned AcceleX:8; unsigned AcceleY:8; unsigned AcceleZ:8; unsigned DEV_DIR:4; unsigned RIGHT_ANALOG:1; unsigned LEFT_ANALOG:1; unsigned ACCELE_SETTING:2; }status; unsigned char data[10]; }RCBController;