Brain Trust / Mbed 2 deprecated digipot_Debug

Dependencies:   mbed

Fork of digipot by Erik Golabek

Revision:
1:0b0025664bb7
Parent:
0:57bdd27601ad
Child:
2:520eb3d16c18
--- a/digipot.cpp	Fri Apr 03 20:04:16 2015 +0000
+++ b/digipot.cpp	Fri Apr 03 20:29:42 2015 +0000
@@ -5,8 +5,8 @@
 static int id = 0x04;       //Module CAN ID, to be assigned by keypad team.
 static double input_amp = 3.3; //input analog signal is 3.3V
 
-static double R1 = 10;    //Opamp resistor between output and inverting-input
-static double R2 = 5.6;    //Opamp resistor between inverting-input and ground
+static double R1 = 9.84;    //Opamp resistor between inverting-input and ground
+static double R2 = 5.47;    //Opamp resistor between output and inverting-input
 static double gain = 1 + R2/R1; //Non-inverting opamp gain
 
 //Debugging Variables