moving a byte array from one object to another?
Zap-o
Posts: 452
in Propeller 1
I have a byte array that I need to access from another cog. I cant seem to get the data. Please provide some light on the subject so that I may understand addressing better.
This example simply wont cut it for some reason. I call it from another cog.
var byte data[20] Pub list_results(in) return @data
This example simply wont cut it for some reason. I call it from another cog.
Comments
I'm guessing the problem is arising from the top object.
You don't need to worry about sharing RAM between cogs in Spin. All RAM accessible by Spin is in the hub and is shared no matter which cog accesses it.