6 x16 segment l.e.d
wb7076
Posts: 29
Okay i have figured out how to display what i type in the program by replacing the text in the "". i need help!
iam trying to figure out.. if i have a var holding a number, how can i display it insted of typing in the " " spot. iam trying to make a count down timer
using the 16 segment l.e.d's
here's my code Iam using the 16 segment obj , and the string obj also
can any one help me with this issue
iam trying to figure out.. if i have a var holding a number, how can i display it insted of typing in the " " spot. iam trying to make a count down timer
using the 16 segment l.e.d's
here's my code Iam using the 16 segment obj , and the string obj also
can any one help me with this issue
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
VIRAND, If you spent as much time SPINNING as you do Trolling the Forums,
you'd have tons of awesome code to post! (Note to self)
Next time, if you could use the File -> "Create Propeller Archive" option and upload the zip file, it would be a lot easier to figure out what is going on. I don't know what "WB Strings" is / does.
Having said that, nice screen shot.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Life may be "too short", but it's the longest thing we ever do.
Thanks for the help, got any tips where i could learn more techniques about writing code?
7 desktops
Take a look at the propeller downloads page: Link
Have a glance through the PE Lab book. It has many examples and is very straightforward
i just renamed them WB strings
i dont know what it does. there is no write up on it. if it was explained like some of the examples ...boy the kid could be a rockit scientist
look a new book is out! going to get it. hope its well explained
here's the code.
and any examples with a write up, using simple numbers object?
Then change the send() line in your time routine to look like this :
Where time = 123 you get the following :
time is the value you want to print to the display, numchars comes from your constant block and tells the decf routine to space the number out to 6 characters
" 123"
If you wanted it padded by 0's instead, you would use decx(time,numchars).
"000123"
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Life may be "too short", but it's the longest thing we ever do.