Shop OBEX P1 Docs P2 Docs Learn Events
Adding a new sensor to the S2 Scribbler Program Maker? — Parallax Forums

Adding a new sensor to the S2 Scribbler Program Maker?

sssidneysssidney Posts: 64
edited 2011-12-09 12:47 in Robotics
hi,

Has anyone added support for a new sensor to the S2 Scribbler Program Maker? Is the procedure to do this documented anywhere?

thanks,
Dave

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-12-09 10:21
    Dave,

    There's no standard way to do that. But it's easy enough to accomplish by repurposing one of the lesser-used sensors (e.g. barcode, coin-flip) to accommodate your own sensor. The way to do this is to rewrite the associated PRIvate method in the file include.spin to return a value similar to what it already returns, but corresponding to output from the new sensor.

    -Phil
  • sssidneysssidney Posts: 64
    edited 2011-12-09 12:30
    OK. That makes sense. How about if you wanted to keep everything intact and add a new sensor/method?
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-12-09 12:47
    No, I'm afraid there are no hooks in the GUI software to support such an approach. Sorry.

    -Phil
Sign In or Register to comment.