PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
#include "mx2125.h"
Go to the source code of this file.
Functions | |
int | mx_rotate (int xPin, int yPin) |
Measure clockwise rotation assuming accelerometer is held vertical. Zero degree rotation is when the triangle on the MX2125 chip is pointing up. More... | |
int mx_rotate | ( | int | xPin, |
int | yPin | ||
) |
Measure clockwise rotation assuming accelerometer is held vertical. Zero degree rotation is when the triangle on the MX2125 chip is pointing up.
xPin | Number of I/O pin connected to MX2125's x-axis pin. |
yPin | Number of I/O pin connected to MX2125's y-axis pin. |
Definition at line 7 of file mx2125_rotate.c.