Shop OBEX P1 Docs P2 Docs Learn Events
Connecting two different codes — Parallax Forums

Connecting two different codes

Sposht42weSposht42we Posts: 6
edited 2014-12-30 12:04 in Propeller 1
How would I go about connecting two or more different codes together to use several different components in one source code?

Comments

  • Duane DegnDuane Degn Posts: 10,588
    edited 2014-12-30 11:12
    Sposht42we wrote: »
    How would I go about connecting two or more different codes together to use several different components in one source code?

    This question is pretty open ended. It's kind of like asking "how do I program?".

    The way code is combined depends a lot on what the code does and how the methods are called. Often it's as easy as including the object you want to use in the OBJ section of the program and calling the Start or Init method of the object.

    Have you looked at the Propeller Education Kit (PEK) in the "Help" section of the Propeller Tool? It walks you through a lot this sort of stuff. I have links to other Propeller tutorials in post #3 of my index (see my signature).
  • turbosupraturbosupra Posts: 1,088
    edited 2014-12-30 12:04
    Do you mean 2 different objects that share common variables back and forth between them?
Sign In or Register to comment.