nagimov / adxl345spi

ADXL345 three-axis accelerometer reader (SPI interface)
GNU General Public License v3.0
62 stars 23 forks source link

Multiple Sensor operability #5

Closed deadeyesky closed 3 years ago

deadeyesky commented 4 years ago

Is there a way to add multiple sensor support into the program and make it print in the format of time, x1, y1, z1, x2, y2, z2? I think it might have something to do with the chip select

nagimov commented 4 years ago

@deadeyesky you can open two handles h1 and h2 around here and follow along reading from both of them. See how to connect two accelerometers to SPI peripherals and open them via spiOpen here