Error Status 1 - 'blinkAll' not declared in this scope

Goal: Create a method where it blinks the RGB light colours and 5 white LEDs.

Issue: I get error status 1, where it says my method was not declared in this scope, and thus doesn't compile

How do I fix this issue?

My Code:

void setup() {

pinMode(5, OUTPUT); // sets the LED 5 to be an output
pinMode(6, OUTPUT); // sets the LED 6 to be an output
pinMode(A2, OUTPUT); // sets the LED A2 to be an output
pinMode(A4, OUTPUT); // sets the LED A4 to be an output
pinMode(A3, OUTPUT); // sets the LED A3 to be an output
pinMode(9, OUTPUT);// sets the redPin to be an output
pinMode(11, OUTPUT); // sets the greenPin to be an output
pinMode(10, OUTPUT); // sets the bluePin to be an input

blinkAll (255, 0, 0); // turn RGB red
delay (1000); // delay for 1 second
blinkAll (0, 0, 0); // turn RGB OFF
delay (1000); // delay for 1 second
blinkAll(0, 255, 0); // turn RGB green
delay (1000); // delay for 1 second
blinkAll (0, 0, 0); // turn RGB OFF
delay (1000); // delay for 1 second
blinkAll(0, 0, 255); // turn RGB blue
delay (1000); // delay for 1 second
blinkAll (0, 0, 0); // turn RGB OFF
delay (1000); // delay for 1 second
digitalWrite (5, HIGH); // LED 5 ON
delay (1000); // delay for 1 second
digitalWrite (5, LOW); // LED 5 OFF
delay (1000); // delay for 1 second
digitalWrite (6, HIGH); // LED 6 ON
delay (1000); // delay for 1 second
digitalWrite (6, LOW); // LED 6 OFF
delay (1000); // delay for 1 second
digitalWrite (A2, HIGH); // LED A2 ON
delay (1000); // delay for 1 second
digitalWrite (A2, LOW); // LED A2 OFF
delay (1000); // delay for 1 second
digitalWrite (A4, HIGH); // LED A4 ON
delay (1000); // delay for 1 second
digitalWrite (A4, LOW); // LED A4 OFF
delay (1000); // delay for 1 second
digitalWrite (A3, HIGH); // LED A3 ON
delay (1000); // delay for 1 second
digitalWrite (A3, LOW); // LED A3 OFF
delay (1000); // delay for 1 second

turnAllOn (0, 255, 255); //
digitalWrite (5, HIGH); // LED 5 ON
digitalWrite (6, HIGH); // LED 6 ON
digitalWrite (A2, HIGH); // LED A2 ON
digitalWrite (A4, HIGH); // LED A4 ON
digitalWrite (A3, HIGH); // LED A3 ON
}

void loop() { // run forever
}

void blinkAll (int red, int green, int blue) } // colour generating function
analogWrite(redPin, 255 - red);
analogWrite(bluePin, 255 - blue);
analogWrite(greenPin, 255 - green);
}

void turnAllOn (int red, int green, int blue) } // colour generating function
analogWrite(9, 255 - red);
analogWrite(10, 255 - blue);
analogWrite(11, 255 - green);
}

Put your blinkAll() and turnAllOn() function above void setup(). I do you a favor because there`s some error left (close bracket in front of function and undeclared redPin etc), and here goes the code:

void blinkAll (int red, int green, int blue) { // colour generating function
analogWrite(9, 255 - red);
analogWrite(10, 255 - blue);
analogWrite(11, 255 - green);
}

void turnAllOn (int red, int green, int blue) { // colour generating function
analogWrite(9, 255 - red);
analogWrite(10, 255 - blue);
analogWrite(11, 255 - green);
}

void setup() {

  pinMode(5, OUTPUT); // sets the LED 5 to be an output
  pinMode(6, OUTPUT); // sets the LED 6 to be an output
  pinMode(A2, OUTPUT); // sets the LED A2 to be an output
  pinMode(A4, OUTPUT); // sets the LED A4 to be an output
  pinMode(A3, OUTPUT); // sets the LED A3 to be an output
  pinMode(9, OUTPUT);// sets the redPin to be an output
  pinMode(11, OUTPUT); // sets the greenPin to be an output
  pinMode(10, OUTPUT); // sets the bluePin to be an input

  blinkAll (255, 0, 0); // turn RGB red
  delay (1000); // delay for 1 second
  blinkAll (0, 0, 0); // turn RGB OFF
  delay (1000); // delay for 1 second
  blinkAll(0, 255, 0); // turn RGB green
  delay (1000); // delay for 1 second
  blinkAll (0, 0, 0); // turn RGB OFF
  delay (1000); // delay for 1 second
  blinkAll(0, 0, 255); // turn RGB blue
  delay (1000); // delay for 1 second
  blinkAll (0, 0, 0); // turn RGB OFF
  delay (1000); // delay for 1 second
  digitalWrite (5, HIGH); // LED 5 ON
  delay (1000); // delay for 1 second
  digitalWrite (5, LOW); // LED 5 OFF
  delay (1000); // delay for 1 second
  digitalWrite (6, HIGH); // LED 6 ON
  delay (1000); // delay for 1 second
  digitalWrite (6, LOW); // LED 6 OFF
  delay (1000); // delay for 1 second
  digitalWrite (A2, HIGH); // LED A2 ON
  delay (1000); // delay for 1 second
  digitalWrite (A2, LOW); // LED A2 OFF
  delay (1000); // delay for 1 second
  digitalWrite (A4, HIGH); // LED A4 ON
  delay (1000); // delay for 1 second
  digitalWrite (A4, LOW); // LED A4 OFF
  delay (1000); // delay for 1 second
  digitalWrite (A3, HIGH); // LED A3 ON
  delay (1000); // delay for 1 second
  digitalWrite (A3, LOW); // LED A3 OFF
  delay (1000); // delay for 1 second

  turnAllOn (0, 255, 255); //
  digitalWrite (5, HIGH); // LED 5 ON
  digitalWrite (6, HIGH); // LED 6 ON
  digitalWrite (A2, HIGH); // LED A2 ON
  digitalWrite (A4, HIGH); // LED A4 ON
  digitalWrite (A3, HIGH); // LED A3 ON
}

void loop() { // run forever
}

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. If your browser doesn't show the posting toolbar then you can just manually add the code tags:
[code]``[color=blue]// your code is here[/color]``[/code]
Using code tags and other important information is explained in the How to use this forum post. Please read it.

Please always do a Tools > Auto Format on your code before posting it. This will make it easier for you to spot bugs and make it easier for us to read. If you're using the Arduino Web Editor you will not have access to this useful tool. I recommend you to use the standard IDE instead.

When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).

+pert Will do. Thanks for the advice.

+Papatonk Thanks for your help. Really appreciate it. +1 karma