Skip to content

Commit

Permalink
resurrect display flip
Browse files Browse the repository at this point in the history
  • Loading branch information
caveman99 committed Mar 15, 2024
1 parent ffec6f4 commit 2b28924
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions src/AccelerometerThread.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,24 +92,12 @@ class AccelerometerThread : public concurrency::OSThread
RISING); // Select the interrupt mode according to the actual circuit
#endif

/* struct bma423_axes_remap remap_data; // todo resurrect
#ifdef T_WATCH_S3
remap_data.x_axis = 1;
remap_data.x_axis_sign = 0;
remap_data.y_axis = 0;
remap_data.y_axis_sign = 0;
remap_data.z_axis = 2;
remap_data.z_axis_sign = 1;
#else
remap_data.x_axis = 0;
remap_data.x_axis_sign = 1;
remap_data.y_axis = 1;
remap_data.y_axis_sign = 0;
remap_data.z_axis = 2;
remap_data.z_axis_sign = 1;
#endif*/
#ifdef T_WATCH_S3
// Need to raise the wrist function, need to set the correct axis
bmaSensor.setReampAxes(bmaSensor.REMAP_TOP_LAYER_RIGHT_CORNER);
#else
bmaSensor.setReampAxes(bmaSensor.REMAP_BOTTOM_LAYER_BOTTOM_LEFT_CORNER);
#endif
// bmaSensor.enableFeature(bmaSensor.FEATURE_STEP_CNTR, true);
bmaSensor.enableFeature(bmaSensor.FEATURE_TILT, true);
bmaSensor.enableFeature(bmaSensor.FEATURE_WAKEUP, true);
Expand Down

0 comments on commit 2b28924

Please sign in to comment.