RGB pins on MEGA2560

Hello,

I know that BITS 2 to 13 ( located on J1 and J2 connectors) can be used for MOOD lighting. I used them and it works fine.
My question is if I can use any other pins for the MOOD lighting.

Can I use any of the bits 22 to 51?

Thanks

I'm going to hazard a guess that you want to use PWM output pins and analogWrite() to dim LEDs. If you look at the documentation for analogWrite() you will see a list of PWM output pins for various Arduino models:

On most Arduino boards (those with the ATmega168 or ATmega328P), this function works on pins 3, 5, 6, 9, 10, and 11. On the Arduino Mega, it works on pins 2 - 13 and 44 - 46.

Hello,

I looked at the link you sent. It says

"On the Arduino Mega, it works on pins 2 - 13 and 44 - 46."

So I can use pin 44, 45, and 46 for LED Mood lighting.

That is what I needed.

Thank You very much.

Bobby