Hey @Banq,
Did you ever get that ADXL to work? I've spent a frustrating past few days trying to figure the issue out. I am using python (but whatever works would do for me) and trying to write the power register.... Its returning 0.. ALWAYS! I am expecting the output console to print a number (I am getting a 0)
Here's my code for the most basic test:
#!/usr/bin/python
import time
import mraa
USED_I2C = 6
DEV_ADDR = 0x1D
x = mraa.I2c(USED_I2C)
byte = 0
m = " "
while byte != 0x28:
print("I read: ")
x.address(DEV_ADDR)
x.writeReg(0x2D, 0x28)
time.sleep(1)
print(x.readReg(0x2D))
Any idea on how I can test my code?
My connections are as follows:
GND==GND
VCC==IOREF (IOREF is set to 5V)
SDA==SDA (J2B1-9)
SCL==SCL (J2B1-10)