NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Support Forum » Led Array Code
November 26, 2011 by SirHobbes3 |
So im doing the Ledarray educational code, and i think i have it finished, i flash it to the mcu and when i plug it in, the only 4 colummns light up(or 5, and they have one unlit colummn in between them). So i was wondering what the final result of the finished code is SUPPOSED to be, that way i know what to aim for. |
---|---|
November 26, 2011 by SirHobbes3 |
Okay let me rephrase that, i did the ledarray educational code and flashed it to the mcu no problem, but when i plug it in , only 4 colummns light up(maybe 5), and there is a colummn in between them, so it's like this(cl=lit colummn, nl=not lit colummn) cl, nl, cl,nl, cl,nl,cl,nl,cl?,nl,nl,nl...... So i don't know what exactly to do here. If it helps, here is the code...
|
November 26, 2011 by Rick_S |
Why don't you try and load proven code to make sure your display is wired and working correctly? Then if you want, you can try to code it yourself - at least at that point, you'll know you have a working setup and if you have problems then you'll know 100% that the problem is in your code. There are several working iterations of led array software floating in the forums and the tutorial page. I have posted full code with updated and extra functions on the forums. If you search by my username and LED array, you'll find it. Rick |
December 03, 2011 by SirHobbes3 |
I seem to be getting somewhere. The "completed" code, when put on the mcu, displays a scrolling question mark (?) which I see on line # 192 of the "ledarray.c" code. On my code the "?" appears on line 193, the cause of that should just be spacing error, but unfortunately, i get different results.(as described in my 2nd post) I will be looking into this....... |
December 03, 2011 by SirHobbes3 |
or if you look in the example above, the "?" appears in line 191. |
December 04, 2011 by Rick_S |
The question mark gets displayed if the font_get function doesn't find a match for the character in your font file. If you are getting this, then the display seems to be working electrically. When you say "completed" code, what code do you mean? Code you wrote or proven code from the forum? Rick |
December 04, 2011 by SirHobbes3 |
When I say "completed" code, i am referring to the finished code that you get when you download the files for the led array. I say "completed" because Isn't the code supposed to display something like Hello? I'm still checking MY code for errors, and will report back.(maybe today(Sunday)) |
December 04, 2011 by SirHobbes3 |
Hey Rick, I finally fixed the problems and now figured out how to write the characters to the array. I also found one of your modded codes and am also using it!! |
December 04, 2011 by SirHobbes3 |
YAY, my code is fixed and the test pattern works! But now I'm slightly stuck. I need someone to explain a little more on writing characters to the array. |
Please log in to post a reply.
Did you know that LEDs (light emitting diodes) only conduct current in one direction, like normal diodes? Learn more...
|