flashing diode

I have the following problem at my Leonardo Print

I get the error massage: 'pin9' was not declared in this scope

int redLed=pin9;
int yellowLED =pin10;
int redOnTime=250;
int redOfTime=250;
int yellowOnTime250;
int yellowOfTime=250;

void setup() {

pinMode (redLedpin, OUTPUT);
pinMode (yellowLedpin, OUTPUT);


void loop() {
int pin9;

digitalWrite(redLEDpin, HIGH);
digitalWrite(REDledpin, LOW);



int redLed=pin9;

Should be

int redLed=9;

Ditto for 10.

When you've fixed that, you're going to have to change this.


Than you for your feedback It works now