PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Sensor
libmx2125
libmx2125.c
1
/*
2
* @file libmx2125.c
3
*
4
* @author Andy Lindsay
5
*
6
* @copyright
7
* Copyright (C) Parallax, Inc. 2013. All Rights MIT Licensed.
8
*
9
* @brief Project and test harness for the mx2125 library.
10
*/
11
12
13
14
#include "
simpletools.h
"
15
#include "
mx2125.h
"
16
17
int
main
()
18
{
19
/*
20
while(1)
21
{
22
int x = mx_x(5);
23
int y = mx_x(6);
24
int angle = mx_rotation(5, 6);
25
int xtilt = mx_tilt_x(5);
26
27
print("%cx = %d, y = %d, angle = %d, x tilt = %d%c\n",
28
HOME, x, y, angle, xtilt, CLREOL);
29
pause(200);
30
}
31
*/
32
}
33
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
main
int main(void)
Definition:
GraphicsTest.c:20
mx2125.h
Measure acceleration, tilt, and rotation with the Memsic MX2125 Dual-axis Accelerometer.
Generated on Fri May 20 2022 16:48:05 for PropWare by
1.8.17