I’ve been making a 4x4x4 RGB cube for the past couple of weeks, and am now programming it. I’ve made a working code (which cycles through a program in blue, then red, then green), but the only visible colour at a distance is blue. Once the cube turns red or green, it’s so dim that at first, me and some others thought it turned off.
I’ve uploaded a different code to turn on ALL red LED’s and then all green LEDs and they all light up bright enough, which confirmed the problem was in the coding.
I also changed the blue part of the code to red or green and it was still so dim, it was barely visible.
I’m using an Arduino Mega; there are no shorts; and with other codes for single colours, everything works fine.
Could someone please have a look at my code and tell me why blue is the only light colour.
_4x4x4_RGB_Cube.ino (55.7 KB)