Simple LED circuit issues

I'm currently having issues writing this code for a class, it has plenty of errors. Anyone able to help fix this? I'll include the errors at the end.

int Ledpin = 13;
int Ledpin1 = LedPin-1;
int Ledpin2 = LedPin1-1;

void setup() {
// put your setup code here, to run once:

pinMode(Ledpin;Output);
pinMode(Ledpin1;Output);
pinMode(Ledpin2;Output);
}

void loop() {
// put your main code here, to run repeatedly:
digitalwrite(Ledpin, HIGH);
digitalwrite(Ledpin1, HIGH);
digitalwrite(Ledpin2, HIGH);
delay(1000);
digitalwrite(Ledpin, LOW);
digitalwrite(Ledpin1, LOW);
digitalwrite(Ledpin2, LOW);
delay(1000);

for(i=0,i<=2,i++)
{
digitalwrite(Ledpin - i, HIGH);
delay(1000);
digitalwrite(Ledpin - i, LOW);
delay(1000);
}
}

Errors:

HW5:3:15: error: 'LedPin' was not declared in this scope
int Ledpin1 = LedPin-1;
^~~~~~
C:\Users\buddy\Documents\Arduino\libraries\HW5\HW5.ino:3:15: note: suggested alternative: 'Ledpin'
int Ledpin1 = LedPin-1;
^~~~~~
Ledpin
HW5:4:15: error: 'LedPin1' was not declared in this scope
int Ledpin2 = LedPin1-1;
^~~~~~~
C:\Users\buddy\Documents\Arduino\libraries\HW5\HW5.ino:4:15: note: suggested alternative: 'Ledpin1'
int Ledpin2 = LedPin1-1;
^~~~~~~
Ledpin1
C:\Users\buddy\Documents\Arduino\libraries\HW5\HW5.ino: In function 'void setup()':
HW5:9:15: error: expected ')' before ';' token
pinMode(Ledpin;Output);
^
HW5:9:16: error: 'Output' was not declared in this scope
pinMode(Ledpin;Output);
^~~~~~
HW5:10:16: error: expected ')' before ';' token
pinMode(Ledpin1;Output);
^
HW5:10:23: error: expected ';' before ')' token
pinMode(Ledpin1;Output);
^
HW5:11:16: error: expected ')' before ';' token
pinMode(Ledpin2;Output);
^
HW5:11:23: error: expected ';' before ')' token
pinMode(Ledpin2;Output);
^
C:\Users\buddy\Documents\Arduino\libraries\HW5\HW5.ino: In function 'void loop()':
HW5:16:1: error: 'digitalwrite' was not declared in this scope
digitalwrite(Ledpin, HIGH);
^~~~~~~~~~~~
C:\Users\buddy\Documents\Arduino\libraries\HW5\HW5.ino:16:1: note: suggested alternative: 'digitalWrite'
digitalwrite(Ledpin, HIGH);
^~~~~~~~~~~~
digitalWrite
HW5:25:5: error: 'i' was not declared in this scope
for(i=0,i<=2,i++);
^
HW5:26:1: error: expected primary-expression before '{' token
{
^
HW5:26:1: error: expected ';' before '{' token
HW5:26:1: error: expected primary-expression before '{' token
HW5:26:1: error: expected ')' before '{' token
exit status 1
'LedPin' was not declared in this scope

sp. "OUTPUT"

Not a compilation error (apart from the for loop stuff) but it won't end well

Maybe concentrate on the basics, before the tricky class stuff?

"Simple LED circuit issues"
Doesn't really concern a circuit, does it?

Please remember to use code tags when posting code

pinMode(Ledpin;Output);
pinMode(Ledpin1;Output);
pinMode(Ledpin2;Output);

Check the syntax of the pinMode() function

numerous typos and syntax errors

  • LedPin instead of Ledpin
  • "; Output" instead of ", OUTPUT"
  • digitalwrite instead of digitalWrite
  • "for(i=0,i<=2,i++)" instead of "for (int i=0; i<=2; i++)"
int Ledpin  = 13;
int Ledpin1 = Ledpin-1;
int Ledpin2 = Ledpin1-1;

void setup() {
    pinMode(Ledpin,  OUTPUT);
    pinMode(Ledpin1, OUTPUT);
    pinMode(Ledpin2, OUTPUT);
}
void loop() {
    digitalWrite(Ledpin,  HIGH);
    digitalWrite(Ledpin1, HIGH);
    digitalWrite(Ledpin2, HIGH);

    delay(1000);

    digitalWrite(Ledpin,  LOW);
    digitalWrite(Ledpin1, LOW);
    digitalWrite(Ledpin2, LOW);

    delay(1000);

    for(int i=0; i<=2; i++) {
        digitalWrite(Ledpin- i, HIGH);
        delay(1000);
        digitalWrite(Ledpin - i, LOW);
        delay(1000);
    }
}