1 |
//Adresa obvodu |
1 |
//Adresa obvodu |
2 |
#define AK_W 0x38 //adresa akcelerometru zápis |
2 |
#define AK_W 0x38 //adresa akcelerometru zápis |
3 |
#define AK_R 0x39 //adresa akcelerometru ètení |
3 |
#define AK_R 0x39 //adresa akcelerometru ètení |
4 |
|
4 |
|
5 |
|
5 |
|
6 |
#define AK_XH 0x01 //osa X LSB |
6 |
#define AK_XH 0x01 //osa X MSB |
7 |
#define AK_XL 0x02 //osa X MSB |
7 |
#define AK_XL 0x02 //osa X LSB |
8 |
#define AK_YH 0x03 //osa Y LSB |
8 |
#define AK_YH 0x03 //osa Y MSB |
9 |
#define AK_YL 0x04 //osa Y MSB |
9 |
#define AK_YL 0x04 //osa Y LSB |
10 |
#define AK_ZH 0x05 //osa Z LSB |
10 |
#define AK_ZH 0x05 //osa Z MSB |
11 |
#define AK_ZL 0x06 //osa Z MSB |
11 |
#define AK_ZL 0x06 //osa Z LSB |
12 |
|
12 |
|
13 |
|
13 |
|
14 |
#include "MMA8451Q.c" |
14 |
#include "MMA8451Q.c" |