Skip to content

Commit

Permalink
Enable output
Browse files Browse the repository at this point in the history
See issue #34 for details
  • Loading branch information
shawaj authored Jan 27, 2018
1 parent 0e12675 commit ab0b63f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions firmware/libcpp/flick_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,10 @@ int main(void) {
flick.airWheelCallback = airwheelCb;
flick.xyzCallback = onXYZCb;
flick.gestureCallback = onGestureCb;
usleep(250000);
int ret = flick.SetRuntimeParameter(0x80, 0x1b, 0x1F); // disable calibration
//printf("ret: %d \n", ret);
usleep(250000);
int ret = flick.SetRuntimeParameter(0xa1, 0x1f, 0xFFFFFFFF); // lock data output <-----
ret = flick.SetRuntimeParameter(0x80, 0x1b, 0x1F); // disable calibration
//printf("ret: %d \n", ret);

while (1) {
flick.Poll();
Expand Down

0 comments on commit ab0b63f

Please sign in to comment.