Testing MCP41010

Hello,

I am trying to test a digipot MCP41010 on a BeagleBone Black and I can’t make it work.

I made the connections between BeagleBone and the digipot MCP41010 as below:

PORT | | CS0 |
| DO | | DI | | SCLK
|

  • | - | - | - | - |
    SPI0 |

    | P9_17 |
    | P9_21 |
    | P9_18 |
    | P9_22 |

I used the code below , from this page: https://adafruit-beaglebone-io-python.readthedocs.io/en/latest/SPI.html, to test the output of the BeagleBone:

<b><i>import Adafruit_BBIO.SPI as SPI

from Adafruit_BBIO.SPI import SPI
# spi = SPI(bus, device) #/dev/spidev<bus>.<device>

# /dev/spidev0.0
spi = SPI(0, 0)
print(spi.xfer2([32, 11, 110, 22, 220]))
spi.close</i>*()*</b>

The output should be: **32, 11, 110, 22, 220**; but, it is: **255, 255, 255, 255, 255**.

Can anybody help me, please?
Thanks for the attention