Shop OBEX P1 Docs P2 Docs Learn Events
can BS2 code use with delphi programming — Parallax Forums

can BS2 code use with delphi programming

WoodChildWoodChild Posts: 1
edited 2005-01-12 01:58 in BASIC Stamp
i am using basic stamp 2 editor, but i am coding a main program using delphi language, and i would like to use the delphi to access basic stamp language. is it posible? how can i do it,is there anyone that know this? please give some help. i am doing the lighting control staff, and would like to use my main program code in delphi to control the volume and the on/off on the light on basic stamp..

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2005-01-12 01:58
    WoodChild -

    You can't "call" the Stamp like you would a subroutine. What you need to do is use an asynchronous serial communications facility within Delphi, to input and output information to and from the Stamp. The Stamp will use its SERIN and SEROUT commnads to transfer information as well, back to the Delphi program. You will be responsible for setting up whatever "command" and "data" protocols you will need, for the Stamp to take whatever actions you wish it to take. In others words, this is a roll-your-own environment except for the information transfer means.

    Regards,

    Bruce Bates
Sign In or Register to comment.