Go Down

Topic: BiColor LEDs (New Problem) (Read 679 times) previous topic - next topic

doctorwho8

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.

johnwasser

It looks like the BiColorLED library is not properly installed.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

doctorwho8

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?

johnwasser


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.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

doctorwho8



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.

johnwasser

Yes.  Every Playground page that references a library should have a pointer to: http://arduino.cc/en/Guide/Libraries
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Go Up