Use a touchscreen display to select which sensor measurement to display
Dependencies: mbed DisplayModule24_demo_day10
Diff: acc.h
- Revision:
- 1:f2a5ea8ff543
- Child:
- 2:1ab4c19b99d4
diff -r b1840c1fbeb8 -r f2a5ea8ff543 acc.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/acc.h Tue Jan 17 18:46:21 2017 +0000 @@ -0,0 +1,18 @@ +/* +* Accelerometer header file +* initializes accelerometer to collect sensor data +* includes a function to return the magnitude of the acceleration +*/ +#ifndef ACC_H +#define ACC_H + + +#include "mbed.h" + +extern I2C connection; +extern Serial pc; +const int addr_acc = 0x53 << 1; +void acc_init(); +float get_acc_magnitude(); + +#endif \ No newline at end of file