Hi ian, thanks for your reply, i'm now trying to use pybuspiratelite to script the data readout of my gyroscope.
everything is fine, it's able to enter Binmode, SPI mode and configure SPI. And i also explore the file I/O function from the python beginner guide to output my data to a text file.
But i face i problem regarding the SPI data readout using python.
from Tera Term terminal, i able to read the data from my gyroscope: (0x50 is my reading command, read 4 bytes)
READ: 0xFF 0xFF 0x6E 0x00
but when i use python to get the same output, it cannot read anything. The script is as below:
print "Reading GYRO..."
gyro_data = spi.bulk_trans(4, [0x54, 0x00, 0x00, 0x00])
print "Data is ", gyro_data
can anyone help me with this? thanks