Pages: [1]   Go Down
Author Topic: BiColor LEDs (New Problem)  (Read 565 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 55
Eureka does not mean what you think.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello!
I just returned to the Arduino after another absence. I decided to try and see if I could apply the ideas for making use of the classic bicolor LED. And chose to try and get to work with 1.05 the examples from the Playground.

However it causes an error, here:
Quote
BiColorLED:9: error: 'BiColorLED' does not name a type
BiColorLED.pde: In function 'void loop()':
BiColorLED:19: error: 'led' was not declared in this scope
BiColorLED:38: error: 'led' was not declared in this scope

That was shown in the sketch here:

Quote
BiColorLED led=BiColorLED(4,5); // (pin 1, pin 2)


As it happens I went and changed the header portion to accommodate the settings for running on everything after 1.x releases.
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 201
Posts: 8695
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It looks like the BiColorLED library is not properly installed.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 55
Eureka does not mean what you think.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
It looks like the BiColorLED library is not properly installed.

Hello!
Okay, that worked. I'll concede the point. However what about mentioning that on the Playground page?
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 201
Posts: 8695
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Okay, that worked. I'll concede the point. However what about mentioning that on the Playground page?

Mentioning what?

I general if you get the error: "'name' does not name a type" it means that you either spelled 'name' wrong or the library that defines the name was not installed.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 55
Eureka does not mean what you think.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Okay, that worked. I'll concede the point. However what about mentioning that on the Playground page?

Mentioning what?

I general if you get the error: "'name' does not name a type" it means that you either spelled 'name' wrong or the library that defines the name was not installed.

Hello!
I beg your pardon, what I posted there,
Quote
However what about mentioning that on the Playground page?
Should say "However what about mentioning that one on the Playground page?". Implying that anyone wanting to make use of his (the creator of the library) library, should be aware of how to properly install any library.
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 201
Posts: 8695
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes.  Every Playground page that references a library should have a pointer to: http://arduino.cc/en/Guide/Libraries
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Pages: [1]   Go Up
Jump to: