Lluis Nadal
/
MCP4141_Test
Test for MCP4141. 7-bit digital potentiometer with SPI interface.
Diff: main.cpp
- Revision:
- 1:ea045d9d4c5b
- Parent:
- 0:b91b5753e54f
--- 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