Shop OBEX P1 Docs P2 Docs Learn Events
I hope someone can help, I am stumped! Using COGs — Parallax Forums

I hope someone can help, I am stumped! Using COGs

TomlikesrocksTomlikesrocks Posts: 5
edited 2010-10-04 21:45 in Propeller 1
Hi guys,

I’ve put together some code to run the Sure Electronics 2416 Led Matrix and it works great.

However I’m planning to use 6 of these screens to make a bigger display.
My code can do this (run multiple screens) except it slows down way too much.

What I’ll like to do is make use of the other COGs to speed things up.
And this is where i'm stuck, I understand allocating Stack space and running a method in a new COG but everything else is a little confusing. Are variables you allocate global?? As in all COGs can read from the same variable.

I’ve attached the code and what I’m really trying to do is run the function “shadowdsp(chipno)” twice at the same time.
As in “shadowdsp(0)” and “shadowdsp(1)” where both cogs would need to read from the variable “shadowram[96*NUM_DEVICES]”

Any help would be greatly appreciated.


Tom

Comments

Sign In or Register to comment.