Passing a Hub variable down to cog?
Steel
Posts: 313
I have an assembly routine running on a cog.
I would like a value in that routine to be updated by a variable stored in the 'hub' in Spin.
Is this possible?
I want to be able to change the variable in Spin (Increment from 0 to 255), and have the Hub its routine based on the change that was made in the SPIN.
Please let me know.
Thanks
Shaun
I would like a value in that routine to be updated by a variable stored in the 'hub' in Spin.
Is this possible?
I want to be able to change the variable in Spin (Increment from 0 to 255), and have the Hub its routine based on the change that was made in the SPIN.
Please let me know.
Thanks
Shaun
Comments
Sorry if that sounds confusing...but that is the only way I think I can describe it.
Is it possible to have 2 Parameters?
Shaun
to read the two parameters, you'd have the following code
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 8/7/2007 10:12:28 PM GMT