Shop OBEX P1 Docs P2 Docs Learn Events
Propeller Error — Parallax Forums

Propeller Error

LegonigelLegonigel Posts: 12
edited 2011-08-02 17:52 in Propeller 1
My prop just stopped working. I wrote a simple code to test it and it didn't work. I'll attach the code. I don't think I made any mistakes. I connected every input, one at a time, to a LED on the PPDB. I checked, and the LED's still work. I can download the code with no problem. Can someone propose a possible problem/solution?

Simple Test.spin

Thanks,
Nigel

Comments

  • kuronekokuroneko Posts: 3,623
    edited 2011-08-02 17:49
    Your main method exits after setting all outputs to high, i.e. shuts down the current cog. Which means you have to be really quick to see anything.

    That said, I'd stay away from the top 4 pins, e.g. use dira[0..27]~~. And add some form of endless loop to your program to keep the cog alive, repeat will do as well as waitpne(0, 0, 0).
  • LegonigelLegonigel Posts: 12
    edited 2011-08-02 17:52
    Ooops. I forgot about that...
    This is my first time in spin in a while.

    Thanks,
    Nigel
Sign In or Register to comment.