@@ -47,6 +47,17 @@ int encoderButton = 17; // Encoder pushbutton
int buttonA = 18; // Left pushbutton
int buttonB = 19; // Right pushbutton
+/*
+ * Digital Pot Assignment
+ */
+
+int ledRPot = 3;
+int ledGPot = 1;
+int ledBPot = 0;
+
+int timerPot = 4;
+int contrastPot = 5;
+
/////////////////////////////
int writing = 0;
@@ -479,14 +490,14 @@ void loop(void)
{
if(fadeUp)
{
- write_pot(3, 20);
- write_pot(1, 255);
- write_pot(0, 255);
- write_pot(4,0);
+ write_pot(ledRPot, 20);
+ write_pot(ledGPot, 255);
+ write_pot(ledBPot, 255);
+ write_pot(timerPot, 255);
}
if(fadeUp)
- write_pot(5,--pot / 3.0);
+ write_pot(contrastPot, --pot / 3.0);
if(pot == 50)
fadeUp = 0;