я тоже свой делал, как код вставлять ?? а то съехало все
#define STATUS_REG_AUX 0x07
#define OUT_ADC1_L 0x08
#define OUT_ADC1_H 0x09
#define OUT_ADC2_L 0x0A
#define OUT_ADC2_H 0x0B
#define OUT_ADC3_L 0x0C
#define OUT_ADC3_H 0x0D
#define INT_COUNTER_REG 0x0E
#define WHO_AM_I 0x0F
#define TEMP_CFG_REG 0x1F
#define CTRL_REG1 0x20
#define ODR 4
#define ODR_POWER_DOWN_MODE 0
#define ODR_1_HZ 1
#define ODR_10_HZ 2
#define ODR_25_HZ 3
#define ODR_50_HZ 4
#define ODR_100_HZ 5
#define ODR_200_HZ 6
#define ODR_400_HZ 7
#define LPEN 3
#define ZEN 2
#define YEN 1
#define XEN 0
#define CTRL_REG2 0x21
#define HPM 6
#define HPM_NORMAL 2
#define CTRL_REG3 0x22
#define DRDY1 4
#define CTRL_REG4 0x23
#define BLE 6
#define FS 4
#define FS_2G 0
#define FS_4G 1
#define FS_8G 2
#define FS_16G 3
#define HR 3
#define CTRL_REG5 0x24
#define BOOT 7
#define CTRL_REG6 0x25
#define BOOT_I1 4
#define REFERENCE 0x26
#define STATUS_REG2 0x27
#define OUT_X_L 0x28
#define OUT_X_H 0x29
#define OUT_Y_L 0x2A
#define OUT_Y_H 0x2B
#define OUT_Z_L 0x2C
#define OUT_Z_H 0x2D
#define FIFO_CTRL_REG 0x2E
#define FIFO_SRC_REG 0x2F
#define INT1_CFG 0x30
#define INT1_SOURCE 0x31
#define INT1_THS 0x32
#define INT1_DURATION 0x33
#define CLICK_CFG 0x38
#define CLICK_SRC 0x39
#define CLICK_THS 0x3A
#define TIME_LIMIT 0x3B
#define TIME_LATENCY 0x3C
#define TIME_WINDOW 0x3D