Shop OBEX P1 Docs P2 Docs Learn Events
Is this possible — Parallax Forums

Is this possible

Jack3Jack3 Posts: 55
edited 2014-02-16 16:44 in Propeller 1
Not sure if this is possible. Working on learning C for the Prop, and there are some functions in Spin that just seem simpler than the same thing in C. Is it possible to call a spin module and run that from a C main program. Even if it has to be launched in it's own cog.

Interested in any aspect of this to round out knowledge. Code snippets appreciated.

Comments

  • jazzedjazzed Posts: 11,803
    edited 2014-02-16 09:09
    Jack3 wrote: »
    Not sure if this is possible. Working on learning C for the Prop, and there are some functions in Spin that just seem simpler than the same thing in C. Is it possible to call a spin module and run that from a C main program. Even if it has to be launched in it's own cog.

    Interested in any aspect of this to round out knowledge. Code snippets appreciated.
    It can be done, but there is no convenient way to do it at this time.

    However, I foresee a feature going forward that will let you simply include the spin file in your project and call a spin function by name.

    Keep an eye on this thread: http://forums.parallax.com/showthread.php/153919-Starting-Spin-code-from-C?p=1243144&viewfull=1#post1243144
  • Jack3Jack3 Posts: 55
    edited 2014-02-16 16:44
    Thank you again
Sign In or Register to comment.