   }
 }
 
-// Input a value 0 to 255 to get a color value.
+// Input a value 0 to MyBrightness to get a color value.
 // The colours are a transition r - g - b - back to r.
 uint32_t Wheel_Module(byte WheelPos) {
-  WheelPos = 255 - WheelPos;
+  WheelPos = MyBrightness - WheelPos;
   if(WheelPos < 85) {
-    return moduleLED.Color(255 - WheelPos * 3, 0, WheelPos * 3);
+    return moduleLED.Color(MyBrightness - WheelPos * 3, 0, WheelPos * 3);
   }
   if(WheelPos < 170) {
     WheelPos -= 85;
-    return moduleLED.Color(0, WheelPos * 3, 255 - WheelPos * 3);
+    return moduleLED.Color(0, WheelPos * 3, MyBrightness - WheelPos * 3);
   }
   WheelPos -= 170;
-  return moduleLED.Color(WheelPos * 3, 255 - WheelPos * 3, 0);
+  return moduleLED.Color(WheelPos * 3, MyBrightness - WheelPos * 3, 0);
 }
 
 //port IEA led functions

  }
}

// Input a value 0 to 255 to get a color value.
// The colours are a transition r - g - b - back to r.
uint32_t Wheel_portIEA(byte WheelPos) {
  WheelPos = 255 - WheelPos;
  if(WheelPos < 85) {
    return portIEA.Color(255 - WheelPos * 3, 0, WheelPos * 3);
  }
  if(WheelPos < 170) {
    WheelPos -= 85;
    return portIEA.Color(0, WheelPos * 3, 255 - WheelPos * 3);
  }
  WheelPos -= 170;
  return portIEA.Color(WheelPos * 3, 255 - WheelPos * 3, 0);
}



  pinMode(ledBluePin, OUTPUT);
  pinMode(ledGreenPin, OUTPUT);
//  Serial1.begin(9600);
 Serial.begin(57600);
  Serial.setTimeout(50);
  portIEA.begin();
  stbdIEA.begin();
