-
Notifications
You must be signed in to change notification settings - Fork 0
/
LSM9DS0.py
executable file
·87 lines (84 loc) · 2.5 KB
/
LSM9DS0.py
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
LSM9DS0_MAG_ADDRESS = 0x1E
LSM9DS0_ACC_ADDRESS = 0x1E
LSM9DS0_GYR_ADDRESS = 0x6A
#LSM9DS0 Gyro Registers
LSM9DS0_WHO_AM_I_G = 0x0F
LSM9DS0_CTRL_REG1_G = 0x20
LSM9DS0_CTRL_REG2_G = 0x21
LSM9DS0_CTRL_REG3_G = 0x22
LSM9DS0_CTRL_REG4_G = 0x23
LSM9DS0_CTRL_REG5_G = 0x24
LSM9DS0_REFERENCE_G = 0x25
LSM9DS0_STATUS_REG_G = 0x27
LSM9DS0_OUT_X_L_G = 0x28
LSM9DS0_OUT_X_H_G = 0x29
LSM9DS0_OUT_Y_L_G = 0x2A
LSM9DS0_OUT_Y_H_G = 0x2B
LSM9DS0_OUT_Z_L_G = 0x2C
LSM9DS0_OUT_Z_H_G = 0x2D
LSM9DS0_FIFO_CTRL_REG_G = 0x2E
LSM9DS0_FIFO_SRC_REG_G = 0x2F
LSM9DS0_INT1_CFG_G = 0x30
LSM9DS0_INT1_SRC_G = 0x31
LSM9DS0_INT1_THS_XH_G = 0x32
LSM9DS0_INT1_THS_XL_G = 0x33
LSM9DS0_INT1_THS_YH_G = 0x34
LSM9DS0_INT1_THS_YL_G = 0x35
LSM9DS0_INT1_THS_ZH_G = 0x36
LSM9DS0_INT1_THS_ZL_G = 0x37
LSM9DS0_INT1_DURATION_G = 0x38
#LSM9DS0 Accel and Magneto Registers
LSM9DS0_OUT_TEMP_L_XM = 0x05
LSM9DS0_OUT_TEMP_H_XM = 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M9DS0_INT_GEN_1_DURATION = 0x33
LSM9DS0_INT_GEN_2_REG = 0x34
LSM9DS0_INT_GEN_2_SRC = 0x35
LSM9DS0_INT_GEN_2_THS = 0x36
LSM9DS0_INT_GEN_2_DURATION = 0x37
LSM9DS0_CLICK_CFG = 0x38
LSM9DS0_CLICK_SRC = 0x39
LSM9DS0_CLICK_THS = 0x3A
LSM9DS0_TIME_LIMIT = 0x3B
LSM9DS0_TIME_LATENCY = 0x3C
LSM9DS0_TIME_WINDOW = 0x3D