![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Receiver code
Sensors.h
- Committer:
- vinbel93
- Date:
- 2016-02-18
- Revision:
- 0:f8873e0badb2
File content as of revision 0:f8873e0badb2:
#pragma once #define ACC_ADDRESS 0x1D << 1 #define ACC_X_REG 0x01 #define CTRL_REG 0x2A #define UINT14_MAX 0x4000 void readButton(char* buffer); void readAccelero(char* buffer); short convertToAcceleration(char hi, char lo);