title: RGB LED strip - blue color not working right (with IR receiver/remote)
body: <p>So with the help of Matthew (thank you so much) in my last question, I managed to make my RGB strip work ... for every color except blue. </p>
  
  <p>(Check here the previous question: <a href="https://stackoverflow.com/questions/34021594/arduino-ir-remote-and-rgb-leds/34023170?noredirect=1#comment55890319_34023170">Arduino IR remote and RGB LEDs</a> )</p>
  
  <pre><code>const int NumberOfModes = 10; //if you add a color, +1 here
  int CurrentMode = -1;
  
  int rgbcolors[NumberOfModes][9] = { //adding a color, +1 here
      { 255,255,255 }, // WHITE
      { 255,0,0 },  // RED
      { 0,255,0 },  // GREEN
      { 0,0,255 },  // BLUE
      { 255,255,0}, // YELLOW
      {128,0,0}, // LESS RED
      {0,128,0}, // LESS GREEN
      {0,0,X}, // Should be less blueish
      {128,128,0}, // LESS YELLOW
      {0,0,0} // OFF
  };
  </code></pre>
  
  <p>So the problem is, my blue doesn't want to be less bright. It only works for X = 255. Everything lower than 255 causes some kind of error with the following outcome: the IR receiver/Arduino doesn't respond on other signals from the IR remote anymore (and I have to reset the Arduino manually).</p>
  
  <p>Write to pin:</p>
  
  <pre><code>        analogWrite(RedPin, rgbcolors[CurrentMode][0]);
          analogWrite(GreenPin, rgbcolors[CurrentMode][1]);
          analogWrite(BluePin, rgbcolors[CurrentMode][2]);
  </code></pre>
  
  <p>And also doesn't mix with the other colors if X &lt; 255; 
  if X = 255 it does work and it does mix with other colors (R,G) that have values &lt; 255</p>
  
  <p>So is something broken in the strip/wiring or is something wrong with the coding?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>There is nothing wrong with the wiring, tested another program and the blue color works here fine. So it must be something wrong with the IR/Coding.</p>