Loading...
Pages: [1]   Go Down
Author Topic: Blink  (Read 282 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm just firing everything up after a long layoff and so I downloaded blink from the library. I get "expected unqualified-id before '--' token" If the library can't get it right I have little hope.
HELP please.
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 19
Posts: 3117
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Blink is included in the IDE. Where did you download it from? Can you post the sketch please?
Logged

UK
Offline Offline
Tesla Member
***
Karma: 89
Posts: 6415
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm just firing everything up after a long layoff and so I downloaded blink from the library. I get "expected unqualified-id before '--' token" If the library can't get it right I have little hope.
HELP please.

Sounds to me as if your example sketch has got mangled. I suggest you post the whole sketch (in [ code ] [ /code ] tags) and hopefully somebody will spot what's wrong with it.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset



This is the code I down loaded from the library. When I try to upload it it gives me thath message.   
*/


void setup() {

pinmode(13, output):
}

void loop() {
  digitalWrite(13, HIGH);
  delay(1000);
  digitalWrite(13, LOW);
  delay(1000):
}
ß
Logged

Leeds, England
Offline Offline
Full Member
***
Karma: 6
Posts: 188
Quick, chuck it in the bin before the boss finds out...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The last character looks a little suspect to me!
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 19
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Last character is wrong and after

"Delay(1000)"
And
"PinMode(uvjh)"

There's ";" not ":"
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 138
Posts: 19067
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

sp. "pinMode", also you can't start anything with a closing comment.
Logged

Pete, it's a fool looks for logic in the chambers of the human heart.

UK
Offline Offline
Tesla Member
***
Karma: 89
Posts: 6415
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is the code I down loaded from the library.

Double check where you got that from. Although that's similar to the Blink example sketch included with the Arduino IDE, it's not the Blink example sketch. Perhaps it's one you wrote for yourself and forgot about? Anyway, I suggest you start again with the real Blink example.
Logged

Pages: [1]   Go Up
Print
 
Jump to: