I'm doing a project with DC motors. Then I use the beaglebone black connecting with a encodercounter of LS7366R to read the encoder data of the DC motor. while when I send command to this chip. I only get 255 return. the coder is shown as following. anyone knows how to fix it? the LS7366R board is from here
from Adafruit_BBIO.SPI import SPI
spi.lsbfirst = False
spi.cshigh = False
spi.xfer2([0x88,0x03])#set the counter to 4bytes mode
#read back data
print "all done"