The MGC3130 is the world’s first electrical-field (E-field) based three-dimensional (3D) tracking and gesture controller
Dependents: NucleoMGC3130 i2c_master
RuntimeParameter/AirWheelDetection.h@8:de7934ec7ea2, 2015-11-14 (annotated)
- Committer:
- yangcq88517
- Date:
- Sat Nov 14 15:44:44 2015 +0000
- Revision:
- 8:de7934ec7ea2
- Parent:
- 1:621c4e9238ef
change to unsigned char array
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yangcq88517 | 1:621c4e9238ef | 1 | #ifndef UK_AC_HERTS_SMARTLAB_MGC3130_AirWheelDetection |
yangcq88517 | 1:621c4e9238ef | 2 | #define UK_AC_HERTS_SMARTLAB_MGC3130_AirWheelDetection |
yangcq88517 | 1:621c4e9238ef | 3 | |
yangcq88517 | 1:621c4e9238ef | 4 | #include "Parameter.h" |
yangcq88517 | 1:621c4e9238ef | 5 | |
yangcq88517 | 1:621c4e9238ef | 6 | class AirWheelDetection: public Parameter |
yangcq88517 | 1:621c4e9238ef | 7 | { |
yangcq88517 | 1:621c4e9238ef | 8 | public: |
yangcq88517 | 1:621c4e9238ef | 9 | AirWheelDetection(bool enable) { |
yangcq88517 | 1:621c4e9238ef | 10 | setRuntimeParameterID(0x90); |
yangcq88517 | 1:621c4e9238ef | 11 | if (enable) |
yangcq88517 | 1:621c4e9238ef | 12 | setArgument0(0x20); |
yangcq88517 | 1:621c4e9238ef | 13 | else |
yangcq88517 | 1:621c4e9238ef | 14 | setArgument0(0x00); |
yangcq88517 | 1:621c4e9238ef | 15 | setArgument1(0x20); |
yangcq88517 | 1:621c4e9238ef | 16 | } |
yangcq88517 | 1:621c4e9238ef | 17 | }; |
yangcq88517 | 1:621c4e9238ef | 18 | |
yangcq88517 | 1:621c4e9238ef | 19 | #endif |