Hello guys,

I am using a BeagleBone Black with an digital potentiometer MCP41010.

I did the connections between the two devices and run the code in python 
below:

import Adafruit_BBIO.SPI as SPI
from Adafruit_BBIO.SPI import SPI# spi = SPI(bus, device) 
#/dev/spidev<bus>.<device>
# /dev/spidev0.0spi = SPI(0, 0)print(spi.xfer2([127]))spi.close()
The output of the code should be: 127
But I only get: 255

Can anyone help me?

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/399406fc-1139-429d-bac8-f12e5b0bf17e%40googlegroups.com.

Reply via email to