Test for MCP4141. 7-bit digital potentiometer with SPI interface.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
lnadal
Date:
Sat Aug 06 11:39:29 2011 +0000
Parent:
0:b91b5753e54f
Commit message:
Error corrected in line 21.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r b91b5753e54f -r ea045d9d4c5b main.cpp
--- a/main.cpp	Sat Aug 06 11:31:15 2011 +0000
+++ b/main.cpp	Sat Aug 06 11:39:29 2011 +0000
@@ -18,7 +18,7 @@
 p8 = Vdd: +3.3V. p4 = Vss: GROUND. p1: cs (mBed's p8).
 p2: sclk (mBed's p7). p3: SDI (mBed's p5). p5: potentiometer a. p7: potentiometer b.
 Rab: 5k, 10k 50k or 100k options. p6: wiper (75 Ohm).
-Attach ohmeter to pins p5 and p7.
+Attach ohmeter to pins p6 and p7.
 */
 
 void write(int n) { // 0 >= n <= 128