RoboGames 2007 Scrolling LED Medal - not displaying robots?
I received·a 2007 RoboGames Scrolling LED Medal last week from Parallax (along with 2 of the required batteries). However, the picture indicates the 2 Robots but my medal does not show them.
When I power it up, I hear the·sound demo·and then it starts scrolling Parallax ....something and then the letters of the alphabet (I beleive). It repeats this but I never see the robots come on.
I assume I can reprogram it with the code from the Parallax site (using only the 2 required batteries).
What is going on here?·Is there another version of the code loaded into my medal?
http://www.parallax.com/detail.asp?product_id=28099
·
When I power it up, I hear the·sound demo·and then it starts scrolling Parallax ....something and then the letters of the alphabet (I beleive). It repeats this but I never see the robots come on.
I assume I can reprogram it with the code from the Parallax site (using only the 2 required batteries).
What is going on here?·Is there another version of the code loaded into my medal?
http://www.parallax.com/detail.asp?product_id=28099
·
Comments
It comes with a header for the SX-Key on-board.
The code that is on the Medals is the test code installed during manufacturing…The source code is freely available and includes the little robots. You can download this code from the following page. Take care.
http://www.parallax.com/detail.asp?product_id=28099
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
I will do that tonight.
Dan
Display(15) = NextChr(0)
and
Display(15) = %00000000
====================
I fixed·the program·by changing the dimensioning statement.
Display VAR Byte (15)
into·this....
Display VAR Byte (16)
Does this sound correct?
Does the SX28 have a 0 to 15 array or a 1-16 array?
Post Edited (T&E Engineer) : 6/29/2007 1:30:17 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
See the picture. I·was chosen as an·SX/B Beta Tester.
I have updated the picture to show working vs original code.
Post Edited (T&E Engineer) : 6/29/2007 2:53:10 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
The code will work because the memory location where Display(15) would be is not used by anything else. But the new compiler errors if you try to use an array element outside of the bounds.
You have done the right thing by changing the declaration to Byte(16). That will solve the problem.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
“The United States is a nation of laws -· poorly written and randomly enforced.” - Frank Zappa
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
It looks to me that the "j" loops should only go to 13 and the "Display(15)" lines should be "Display(14)".
But that's just a quick read thought, I don't have a metal handy to try it.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
“The United States is a nation of laws -· poorly written and randomly enforced.” - Frank Zappa
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
The text scrolling routines, SCROLL_LF and SCROLL_RT, can use inline strings or strings stored in DATA statements. If the DATA statement is used then you can embed a bell character (#7) into the string and the beeper will beep at that point while retrieving the next character (the beeper runs in the ISR). You can also embed a CLS (#12) character into the string. Scrolling speed is controlled with a variable so you can adjust this parameter before putting text on the screen.
This version of the program takes advantage of a subtle feature in SX/B: you can pass five parameters to a subroutine (or function) -- yes, five. To do this, however, you must pass exactly five (and the SUB or FUNC has to be defined that way). When this is the case the register that usually holds the parameter count (__PARAMCNT) is used as the fifth parameter (it is also aliased as __PARAM5). Here's how I use it in this program to play a set of animation frames:
Post Edited (JonnyMac) : 7/1/2007 7:23:29 PM GMT
All I can say is WOW and Incredible!
Great job!
Now it's time to examine it closer to adapt it to my other project (if possible).