|
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
14 unsigned char contMode = 0x00;
15 int n =
i2c_out(bus, 0x3C >> 1, modeReg, 1, &contMode, 1);
20 int16_t x16, y16, z16;
23 i2c_in(bus, 0x3D >> 1, datRegTo3, 1, data, 6);
25 x16 = (data[0] << 8) | data[1];
26 z16 = (data[2] << 8) | data[3];
27 y16 = (data[4] << 8) | data[5];
void compass_read(i2c *bus, int *px, int *py, int *pz)
Read values from compass.
void compass_init(i2c *bus)
Initialize the Compass.
This library provides convenience functions for reading measurements from the Parallax Compass Module...
Provides simple i2c start, stop, read, and write functions. See simpletools library for additional I2...