Shop OBEX P1 Docs P2 Docs Learn Events
Where to find current standards and best practices for object development — Parallax Forums

Where to find current standards and best practices for object development

souplogicsouplogic Posts: 8
edited 2008-04-20 01:57 in Propeller 1
I am relatively new to propeller programming and I want to make sure that objects I write can be used easily by other code. I have written a "shell" or "skeleton" object that is a stripped down version of the toggle spin objects found in the manual. I am not sure how current or appropriate the resulting object is.

Ideally a shell object would provide me with a blank file that:
1) lays out all the appropriate sections of an object
2) provides the ability to run in a separate cog
3) provides activity and status monitoring for cogable functions
4) includes explanatory documentation for the above

Is there a good place to find this info, or an object that implements this already. The Simple Serial states it was "Updated by Jeff Martin to conform to Propeller object initialization standards", where are these standards?

Thanks,
Adam

Comments

  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-04-19 23:23
    I've never seen any standards released. Generally, if you your object starts a new cog it should have a start and stop method. If it does output than it would be a good idea to use the same methods as tv_text or vga_text. If you are writing a new object that does something similar to what already exists, use the existing object as a sort of template.
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-04-20 01:57
    It's as close as the Propeller Wiki.. [noparse]:)[/noparse] (Or at least a good start...)

    propeller.wikispaces.com/Packaging+Propeller+Software

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card? - PropDOS
    A Living Propeller FAQ - The Propeller Wiki
    (Got the Knowledge? Got a Moment? Add something today!)

Sign In or Register to comment.