spinning led display
PFloyd36069
Posts: 135
Hi,
How would i make an object that would allow me to write the data for all the letters in the alphabet, then in my main program, be able to type in a message and let the object insert all the right data to make in show up on the display?
Thanks,
Bryan
How would i make an object that would allow me to write the data for all the letters in the alphabet, then in my main program, be able to type in a message and let the object insert all the right data to make in show up on the display?
Thanks,
Bryan
Comments
Are you starting from scratch or do you have the display already?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Signature space for rent, only $1.
Send cash and signature to CannibalRobotics.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Signature space for rent, only $1.
Send cash and signature to CannibalRobotics.
I think I understand your question now. What you are saying is that you have to completely reload the prop program every time you want to change the message? Do you just want to hook the prop up to a keyboard directly?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Signature space for rent, only $1.
Send cash and signature to CannibalRobotics.
even just being able to type the message into the program without having to mess with the byte%01110010 sort of lines would be nice
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Signature space for rent, only $1.
Send cash and signature to CannibalRobotics.
make your definition of the characters in a DAT-section in the same order as ASCII-code
Then you define a string like you would do it for using FullDuplexSerial with usual ASCII-code
make a repeat loop that goes through the string by using an index
from the ASCII-Code of a character you calculate the position of the pixel-definition inside the DAT-section
best regards
Stefan
Post Edited (StefanL38) : 10/26/2008 4:09:57 PM GMT
you can store different things in the DAT-section
the "%"-symbol indicates binary values a "$" would indicate hexadecimal
DAT
byte "E" would be translated from the compiler as ASCII-coded values
no your definition starts after the reserved word for the size
as there are byte or word or long
post your definition that you are currently using
if your characters would be a 8x8 dotmatrix
an "L" would be defined as shown below
(look at the pattern of all the "1"s
first for an easy view in separated lines.
By using curved brackets in that way for the compiler this looks like the second version below
The compiler "thinks" this is just one line
to explain a little more
the name "DotMatrixPixel" is free chosen by me
the "%" indicates the values following are defined BINARY
the comma separates the values from each other
best regards
Stefan
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quicker answers in the #propeller chat channel on freenode.net. Don't know squat about IRC? Download Pigin! So easy a caveman could do it...
http://folding.stanford.edu/ - Donating some CPU/GPU downtime just might lead to a cure for cancer! My team stats.
If I get some time later, I might provide a rough schematic.
BTW:· How are you getting power to the Prop in that configuration?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"I have always wished that my computer would be as easy to use as my telephone.· My wish has come true.· I no longer know how to use my telephone."
- Bjarne Stroustrup
Post Edited (Ken Peterson) : 10/28/2008 12:41:53 PM GMT
After posting the picture, I realized I should have added a diode on the primary coil to take care of the spike, and possibly a current limiting resistor in series with the primary coil so you don't fry the transistor.· As I said, it's a rough schematic just so you get the idea.
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"I have always wished that my computer would be as easy to use as my telephone.· My wish has come true.· I no longer know how to use my telephone."
- Bjarne Stroustrup
Post Edited (Ken Peterson) : 10/29/2008 1:40:26 PM GMT