Vincent Belanger
/
Receiver
Receiver code
Sensors.h@0:f8873e0badb2, 2016-02-18 (annotated)
- Committer:
- vinbel93
- Date:
- Thu Feb 18 13:22:31 2016 +0000
- Revision:
- 0:f8873e0badb2
Receiver
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vinbel93 | 0:f8873e0badb2 | 1 | #pragma once |
vinbel93 | 0:f8873e0badb2 | 2 | |
vinbel93 | 0:f8873e0badb2 | 3 | #define ACC_ADDRESS 0x1D << 1 |
vinbel93 | 0:f8873e0badb2 | 4 | #define ACC_X_REG 0x01 |
vinbel93 | 0:f8873e0badb2 | 5 | #define CTRL_REG 0x2A |
vinbel93 | 0:f8873e0badb2 | 6 | #define UINT14_MAX 0x4000 |
vinbel93 | 0:f8873e0badb2 | 7 | |
vinbel93 | 0:f8873e0badb2 | 8 | void readButton(char* buffer); |
vinbel93 | 0:f8873e0badb2 | 9 | void readAccelero(char* buffer); |
vinbel93 | 0:f8873e0badb2 | 10 | short convertToAcceleration(char hi, char lo); |