Pages: [1]   Go Down
Author Topic: Digital Pot Programming?  (Read 480 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Edison Member
*
Karma: 29
Posts: 2455
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.jaycar.com.au/productView.asp?ID=ZK8879

I found that, it's a MCP4151-103E/P, the only library i've found is 2 years old and out of date, anyone come across anything that works with 1.0.1+ ?

Thanks!
Logged

Queens, New York
Online Online
Faraday Member
**
Karma: 101
Posts: 3643
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In the libraries .h file, did you change WProgram.h to Arduino.h?
Logged

Created Libraries:
TFT_Extension, OneWireKeypad, SerialServo, (UPD)WiiClassicController, VWID

Offline Offline
Edison Member
*
Karma: 29
Posts: 2455
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

huh?

is the simple answer....   I attached the source code, how feasible is it to modify this? i've never really looked into how to code a .h yet lol

* McpZip.zip (5.92 KB - downloaded 11 times.)
Logged

Offline Offline
Edison Member
*
Karma: 29
Posts: 2455
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

or, I found this...

This is supposedly able to work with this mode of chip, but there's no example to call the object... lol yes sorry i'm that bad lol

So that mpcxxx.zip compiles fine when i include the header, which leads me to believe I can safely use it, but I don't really know what
the rules are for calling a function after including it in the header...

Which would be the easier? Rewrite the old code to make it work with the new IDE, or create an object from the mpcxxx lib?

cheers smiley

* mpcxxx.zip (4.6 KB - downloaded 7 times.)
Logged

Pages: [1]   Go Up
Jump to: