global variable block problem
Rimo
Posts: 3
HI all!
I'm a newbie in spin language.
And have one question.I could not find it become.
For example:
VAR
byte time[7]
PUB clockSecond
return ?? how to return complete time block?
or how to accessing variable block in other object?
thanks to reply
I'm a newbie in spin language.
And have one question.I could not find it become.
For example:
VAR
byte time[7]
PUB clockSecond
return ?? how to return complete time block?
or how to accessing variable block in other object?
thanks to reply
Comments
thanks but not working perfectly 0..3 index is ok but 4..7 so no good .. how to access next long ?
i reply:
vga.dec(byte[ds1307.getTime][1]) 'all block accessing
this is ok
This is "temp" variable i do no need.
I close my unit, so they:
vga.dec(byte[ds1307.getTime][N]) /where N is the requested block
But is it too will be so slow?
vga.dec only can use the debugging..
this is an matrix controll program proto version This is a nixie tube controller colums in anode(six tubes) rows in 0....9 digits katode...
First of all welcome to this forum. I struggled for a long time with using global variables and Jonny Mac was very helpfull in extending my understanding of it. For a newbe, there are some great articles about the prop and the latest one is about passing global vars here http://http://www.parallax.com/Resources/NutsVoltsColumns/TheSpinZone/tabid/781/Default.aspxHere is a thread where he shows the passing of some vars to both a spin cog and a pasm cog: http://http://forums.parallax.com/showthread.php?128922-Passing-Memory-Address-I-am-stumped!
Hope this helps.
RS_Jim