Hi
Your code;
#define RED 9
#define GREEN 6
#define BLUE 5
Your image;

pins 3,5,6?
So which is it?
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
Does you protoboard have CONTINUOUS power bus lines up either side of the board?
Have you written just SIMPLE CODE just to operate the RGB LED on its own, and tried it in UNO and Nano?
In the IDE did you change the "BOARD" from UNO to NANO?Tom..
