Mcp4261 Digital Potentiometer + Arduino

Hi, im working on controlling an R.C. Quadcoptor (helicopter with four blades) via an arduino. I have four Mcp4261 digital potentiometers, which is one for each potentiometer that was on the original remote. I have taken apart the remote for the quadcoptor and I'm currently working on programing and wiring the circuit. I have been searching for a few days now and have been unable to find something that actually works. I keep coming across code that says to use "The Spi Library by Cam Thompson (not the official one)!" but this takes me to here: Arduino Playground - Spi which says it's now included. Can someone please help me?

Thanks

~ Will

I don't see any reason for this. Seems to be a standard SPI device that should run with the included SPI library.

Show us the code you used for your tries!

Make a picture or a drawing of how you wired the chips to the remote.

If you follow that link you posted a couple of pages in, you'll find code for the AD5206 digital pot. I recently adapted it for the MCP42xxx product: don't know how that differs from the MCP4261, but my code is over on this thread here. Perhaps it will help?

I'm sorry, i had a typo i mean to say the MCP4131... Should this all apply tho that?

wfs123:
I'm sorry, i had a typo i mean to say the MCP4131... Should this all apply tho that?

I have no idea... have you read its datasheet?. I had a quick look at that: section 7 explains its command approach- it looks similar to what I used but not identical. You'll have to get your mind round what the chip expects before you can progress.

I'm sorry, i had a typo i mean to say the MCP4131... Should this all apply tho that?

My post still applies as it's the same datasheet. You can use the standard SPI library.

Still my question is unanswered: What code are you using to access the chip?

the code i am using can be found here: UDuiNo.com domain is for sale | Buy with Epik.com

wfs123:
the code i am using can be found here: uduino.com - contact with domain owner | Epik.com

And what's your actual question?

Edit... I see that code starts with:

// include the SPI library:
#include

... which can't be correct. Try:

// inslude the SPI library:
#include <SPI.h>