![](/media/cache/profiles/8474b8609e772af467ac0fc4acad4dd4.jpg.50x50_q85.jpg)
A compilation of code from different sources to provide support for a Playstation 3 controller via bluetooth on the m3pi.
Fork of mbed_TANK_PS3 by
PS3BT.cpp
- Committer:
- srsmitherman
- Date:
- 2013-01-01
- Revision:
- 2:895f70862eb9
- Parent:
- 1:ae49669c5e92
File content as of revision 2:895f70862eb9:
#include "ps3BT.h" void PS3BT::decode(const u8* data){ ps3report* _ps3report = (ps3report*)data; } void PS3BT::dump(const u8* data){ ps3report* _ps3report = (ps3report*)data; printf("%3d %3d %3d %3d %3d %3d %3d %3d %3d %3d %3d %3d %3d %3d %3d %3d %4d %4d %4d %4d \r\n", _ps3report->LeftStickX, _ps3report->LeftStickY, _ps3report->RightStickX, _ps3report->RightStickY, _ps3report->PressureUp, _ps3report->PressureRight, _ps3report->PressureDown, _ps3report->PressureLeft, _ps3report->PressureL2, _ps3report->PressureR2, _ps3report->PressureL1, _ps3report->PressureR1, _ps3report->PressureTriangle, _ps3report->PressureCircle, _ps3report->PressureCross, _ps3report->PressureSquare, (_ps3report->AccelX), (_ps3report->AccelY), (_ps3report->AccelZ), (_ps3report->GyroZ)); }