The MGC3130 is the world’s first electrical-field (E-field) based three-dimensional (3D) tracking and gesture controller
Dependents: NucleoMGC3130 i2c_master
Diff: RuntimeParameter/ApproachDetection.h
- Revision:
- 1:621c4e9238ef
diff -r 92f17b057d6b -r 621c4e9238ef RuntimeParameter/ApproachDetection.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RuntimeParameter/ApproachDetection.h Wed Oct 07 20:43:39 2015 +0000 @@ -0,0 +1,19 @@ +#ifndef UK_AC_HERTS_SMARTLAB_MGC3130_ApproachDetection +#define UK_AC_HERTS_SMARTLAB_MGC3130_AirWheelDetection + +#include "Parameter.h" + +class ApproachDetection: public Parameter +{ +public: + ApproachDetection(bool enable) { + setRuntimeParameterID(0x97); + if (enable) + setArgument0(0x01); + else + setArgument0(0x00); + setArgument1(0x01); + } +}; + +#endif \ No newline at end of file