Lluis Nadal
/
MCP4141_Test
Test for MCP4141. 7-bit digital potentiometer with SPI interface.
Revision 1:ea045d9d4c5b, committed 2011-08-06
- 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