5 button RGB control

One day I will hopefully understand enough about this programming to contribute as much as I am receiving help, but here I am again with a problem I don't get:

I'm trying to fade the three different colors in an RBG led independently using 5 buttons set as pullup inputs. I believe I have the led and buttons wired properly. I'm getting absolutely no response from anything when I try to use it as I intend. My comments in my code pretty well describe what I'm trying to accomplish.

//define my button inputs and led outputs
int ledPins[3]= {3,5,6};
int buttonPins[5] = {8,9,10,11,12};

void setup() {
  //set the function of my button and led pins
  pinMode(ledPins[0,1,2], OUTPUT);
  pinMode(buttonPins[0,1,2,3,4], INPUT_PULLUP);
}

// the loop function runs over and over again forever
void loop() {
//define my buttons by color
int greenButton = buttonPins[0];
int blueButton = buttonPins[1];
int redButton = buttonPins[2];
int upButton = buttonPins[3];
int downButton = buttonPins[4];
//define the RGB components by color
int redLed = ledPins[0];
int blueLed = ledPins[1];
int greenLed = ledPins[2];
//create an array of values for analogWrite functions
int fadeLevel[3] = {0,0,0};
//write the fade level to each color of the RGB
analogWrite(redLed, fadeLevel[0]);
analogWrite(blueLed, fadeLevel[1]);
analogWrite(greenLed, fadeLevel[2]);
//set a series of statements to use the buttons
//to raise or lower the duty cycle of the led by color
//using if statements to look for simultaneous presses
//of a color button and the "up" or "down" buttons
//respectively
if(greenButton == HIGH && upButton == HIGH){
  fadeLevel[0] == fadeLevel[0] + 10;
  delay(1);
}
else if(blueButton == HIGH && upButton == HIGH){
  fadeLevel[1] == fadeLevel[1] + 10;
  delay(1);
}
else if(redButton == HIGH && upButton == HIGH){
  fadeLevel[2] == fadeLevel[2] + 10;
  delay(1);
}
else if(greenButton == HIGH && downButton == HIGH){
  fadeLevel[0] == fadeLevel[0] - 10;
  delay(1);
}
else if(blueButton == HIGH && downButton == HIGH){
  fadeLevel[1] == fadeLevel[1] - 10;
  delay(1);
}
else if(redButton == HIGH && downButton == HIGH){
  fadeLevel[2] == fadeLevel[2] - 10;
  delay(1);
}

Hello

start by fixing this, it won't do what you believe

  pinMode(ledPins[0,1,2], OUTPUT);
  pinMode(buttonPins[0,1,2,3,4], INPUT_PULLUP);

use a for loop to iterate through each pin

why do you do this?

//define my buttons by color
int greenButton = buttonPins[0];
int blueButton = buttonPins[1];
int redButton = buttonPins[2];
int upButton = buttonPins[3];
int downButton = buttonPins[4];
//define the RGB components by color
int redLed = ledPins[0];
int blueLed = ledPins[1];
int greenLed = ledPins[2];

if you don't need the array, then just define your pins directly (and better as const byte rather than int)

what you do there is like declaring a new variable for each pin, like int greenButton = 8;

then when you do those tests

if(greenButton == HIGH && upButton == HIGH){

you are comparing a pin number with HIGH or LOW... do you think there is a chance for this to work ? can greenButton (which is 8 ) be HIGH or LOW?

you might want to read some of the basic tutorials on pinMode, digitalRead or digitalWrite.

You are very drastically failing to use correct syntax that gets covered in the first few lessons of any tutorial sequence. It appears you are trying things the way you think they ought to work instead of how they actually do.

Slow down, start with the basics, and you will progress quicker than jumping ahead and wasting your own time deciphering your own obstacles.