How to get single axis value with stream_acc.py

Hi,

I'm trying to get only one value from the example code.

instead of -
print("%s -> %s" % (self.device.address, parse_value(data)))

I'm trying -
print(data.x)

but i'm getting an error.

What should be the syntax to get only the value for x axis (or y or z)?

Thanks,
Omri

Comments

Sign In or Register to comment.