Shop OBEX P1 Docs P2 Docs Learn Events
Passing PIN as Parameter — Parallax Forums

Passing PIN as Parameter

sumguy16sumguy16 Posts: 21
edited 2008-05-31 23:01 in General Discussion
Is it possible to pass a PIN as a parameter to a subroutine? (Using SX/B)

Thanks,
Adam

Comments

  • Sparks-R-FunSparks-R-Fun Posts: 388
    edited 2008-05-31 19:52
    It is not possible to pass a PIN parameter directly to a subroutine.

    - Sparks
  • sumguy16sumguy16 Posts: 21
    edited 2008-05-31 19:55
    Thought so, thanks for the response.
  • JonnyMacJonnyMac Posts: 9,216
    edited 2008-05-31 23:01
    The great thing about SX/B is that we can in fact extend the language through subroutines and functions. I've attached a little demo (subs and funcs have been fully tested) that shows how to create PBASIC-like subroutines and functions in SX/B -- this is what processors like the BASIC Stamp do for us behind the scenes. Use these examples to create your routines.
Sign In or Register to comment.