Rev 960 | Rev 1045 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | //Knihovna pro senzor HMC5883L |
|
- | 2 | //(c) Jan Chroust 2013 |
|
- | 3 | |
|
- | 4 | |
|
1 | void set_mag (void) //uvodni nastaveni na kontinualni mereni, rozsah ± 8.1 Ga, frekvence mereni 15HZ |
5 | void set_mag (void) //uvodni nastaveni na kontinualni mereni, rozsah ± 8.1 Ga, frekvence mereni 15HZ |
2 | { |
6 | { |
3 | i2c_start(); //nastavení Configuration Register A |
7 | i2c_start(); //nastavení Configuration Register A |
4 | I2C_Write(MAG_ADDR_W); |
8 | I2C_Write(MAG_ADDR_W); |
5 | I2C_Write(0x00); |
9 | I2C_Write(0x00); |