-
Notifications
You must be signed in to change notification settings - Fork 0
/
BMA250.h
27 lines (24 loc) · 602 Bytes
/
BMA250.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef BMA250_h
#define BMA250_h
#define BMA250_I2CADDR 0x18
#define BMA250_update_time_64ms 0x08
#define BMA250_update_time_32ms 0x09
#define BMA250_update_time_16ms 0x0A
#define BMA250_update_time_8ms 0x0B
#define BMA250_update_time_4ms 0x0C
#define BMA250_update_time_2ms 0x0D
#define BMA250_update_time_1ms 0x0E
#define BMA250_update_time_05ms 0xF
#define BMA250_range_2g 0x03
#define BMA250_range_4g 0x05
#define BMA250_range_8g 0x08
#define BMA250_range_16g 0x0C
#include <inttypes.h>
class BMA250 {
public:
BMA250();
void begin(uint8_t, uint8_t);
void read();
int X,Y,Z,rawTemp;
};
#endif