im new too this so what is wrong wit this code keep gettin function message
FirstCode.ino (1.4 KB)
im new too this so what is wrong wit this code keep gettin function message
FirstCode.ino (1.4 KB)
Without looking deeply, your braces ('{') are misplaced.
Use CTRL T to format your code.
Attach your sketch between code tags
[code]Paste your sketch here[/code]
Check your braces { }
41Elysian:
im new too this so what is wrong wit this code keep gettin function message
How about posting the message ?
...R
41Elysian:
im new too this so what is wrong wit this code keep gettin function message
Where does the setup() function end ?
Just post the code, in code tags.
int redLEDPin=9; // redLedpin is int on pin9
int yellowLEDPin=10; // yellow pin is on int pin10
int redOnTime=1000; // red on this time
int yellowOnTime=500; // yellow on this time
int redOffTime=100; // red off time
int yellowOffTime=100; // yellowOffTime
int greenLEDPin=11; // green pin11
int greenOnTime=1000; // on time
int greenOffTime=500; // off
int blueLEDPin=6;
int blueOnTime=500;
int blueOffTime=500;
int turquiseLEDPin=12;
int turquiseOnTime=500;
int turquiseOffTime=40;
int whiteLEDPin=3;
int whiteOnTime=500;
int whiteOffTime=40;
void setup() {
pinMode(redLEDPin,OUTPUT);
pinMode(yellowLEDPin,OUTPUT);
pinMode(greenLEDPin,OUTPUT);
pinMode(blueLEDPin,OUTPUT);
pinMode(turquiseLEDPin,OUTPUT);
pinMode(whiteLEDPin,OUTPUT);
void loop() {
digitalWrite(redLEDPin,HIGH); // turn red on
delay(redOnTime);
digitalWrite(redLEDPin,LOW); // turn off red
delay(redOffTime);
digitalWrite(yellowLEDPin,HIGH); // turn on
delay(yellowOnTime);
digitalWrite(yellowLEDPin,LOW); // turn off
delay(yellowOffTime);
digitalWrite(greenLEDPin,HIGH); //turn on
delay(greenOnTime);
digitalWrite(greenLEDPin,LOW); // off
delay(greenOffTime);
digitalWrite(whiteLEDPin,HIGH);
delay(whiteOnTime);
digitalWrite(whiteLEDPin,LOW);
delay(whiteOffTime);
digitalWrite(turquiseLEDPin,HIGH);
delay(turquiseOnTime);
digitalWrite(turquiseLEDPin,LOW);
delay(turquiseOffTime);
{
}
Braces MUST always be in pairs, opening { and closing }. You have 3 {{{ and only 1 }. That can never work.
Steve