Go Down

Topic: Error on Charlieplex Library Playground page (Read 850 times) previous topic - next topic

Ardor

I was having trouble with the example program posted on the Playground page:

http://www.arduino.cc/playground/Code/Charlieplex

When I compiled the program I kept getting back the error:

sketch_jul01b:20: error: 'plex' was not declared in this scope
sketch_jul01b:22: error: 'plex' was not declared in this scope

When making sure I had loaded the library correctly I saw the folder "examples." On the chance it might have something that would be helpful I opened it. In it was what looked like the same program on the Playground page. When I compiled it though this one went through without an error message.

The difference is this. The program on the Playground page has these lines:
Code: [Select]

if (singleOn){ plex.clear(); }
plex.charlieWrite(led1,HIGH);


The correct syntax is:

Code: [Select]

if (singleOn){ charlieplex.clear(); }
charlieplex.charlieWrite(led1,HIGH);


So it's charlieplex. NOT plex.

This is really frustrating and confusing to new programmers like me who are having enough trouble figuring out how to program never the less working from samples programs with errors. What would be the best way to get the playground page corrected?

CrossRoads

Aren't those editable by anyone?
Click the Edit button, scroll down, make the fixes.
Makes one wonder if a global search/replace was done that screwed things up.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

robtillaart

from the playground code:

I would love feedback at alexanderbrevig at gmail dot com
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Ardor

@CrossRoads You're right it is editable by anyone. I fixed it.

@robtillaart I did email him as well but I've done that in the past and he hasn't answered the email.

Thanks guys!

Go Up