Shop OBEX P1 Docs P2 Docs Learn Events
running textmessages.spin and anotherblink.spin in separate cogs — Parallax Forums

running textmessages.spin and anotherblink.spin in separate cogs

nhavennhaven Posts: 4
edited 2007-05-19 18:21 in Propeller 1
When I try to run the Textmessages object (from the propeller library) and AnotherBlinker (from the Methods and Cogs download) in separate cogs, only the first one works. What am I doing wrong? By the way, I am using the demo board and I changed AnotherBlinker to access LED 16. Both objects work fine when run separately. I'm using hyperterminal to check the text messages.

Here is my main program:


'run_test

CON
···_clkmode = xtal1 + pll16x
·· _xinfreq = 5_000_000

VAR
· long· stack[noparse][[/noparse]9], stack2[noparse][[/noparse]9]

OBJ
· ab : "anotherblinker"
· txmsgs : "testmessages"

PUB start
· cognew((ab.blink ), @stack)
· waitcnt(clkfreq*3 + cnt)
· cognew((txmsgs.testdatmessages ), @stack2)


I posted earlier with another example, but perhaps this one is clearer. Thanks

Post Edited (nhaven) : 5/19/2007 6:47:32 PM GMT
Sign In or Register to comment.