Programming Code

Programming arduino and electronics are not core in the degree, hence why I don''t know.

This is as far a I have gotten with coding, I think some steps might be missing.

int switch = 1;
int reedSwitch = 2;
int ledRed = 3
int ledBlue = 4;

void setup() {
pinMode(switch, INPUT);
pinMode(reedSwitch, INPUT);
pinMode(ledRed, OUTPUT); // sets the digital pin as output
pinMode(ledBlue, OUTPUT); // sets the digital pin as output
switch = LOW;
reedSwitch = 0;
}

void loop() {
if (digitalRead(switch) == HIGH) {
digitalWrite(ledRed, HIGH);
}
else if (digitalRead(reedSwitch) > 1000) {
digitalWrite(ledRed, HIGH); // sets the LED on
delay(1000); // waits for a second
digitalWrite(ledRed, LOW); // sets the LED off
delay(1000); // waits for a second
}
else if (digitalRead(switch) == LOW) {
digitalWrite(ledRed, LOW); //Makes sure the LED is off when not in use
digitalWrite(ledBlue, LOW); //Makes sure the LED is off when not in use
}
}

For starters, when I plug my leostick arduino into the computer (mac) and click upload, it says the coding has uploaded, but a new network device toolbar pops up, and the actual leostick arduino does not respond to the feedback.
Any Suggestions?

I have tried the circuit schematics, blew a few LEDs.
I really am trying, but with no guidance from tutor, how am I meant to learn. Tried tutorials online and did not understand.