I am converting one of my P1 programs and was able to make some small changes to get it to compile with spin2gui. I have not hooked it up to the hardware that I am going to test on yet, however, it does compile.

One of the issues I had was when an object is instantiated from the main.spin2 it gripes that PAR is not a recognized symbol. A little research in the P2 Tricks, Traps & Differences between P1 thread I found that PAR is replaced by PTRA with the caveat that "needs to be set by SETQ before COGINIT". Does anyone have an example of how to do that?

Terry's Workbench

Feel the need for speed between your PC's com port and Prop?
Try the FTDI 245 and the FullDuplexParallel Object.
Check out my spin driver for the Parallax "96 x 64 Color OLED Display Module" Product ID: 28087
22FPS video from the P2 on the Parallax "96 x 64 Color OLED Display Module"


  • If you start it from Spin the coginit() function will handle this automatically; it's only a problem if you're using the raw PASM COGINIT (in which case you need to use SETQ with it).
    FlexGUI, a GUI for programming the P1 and P2 in Spin, PASM, BASIC, and C.
    Help support its development at Patreon or PayPal.
Sign In or Register to comment.