Shop OBEX P1 Docs P2 Docs Learn Events
A question about PINK and HTML code — Parallax Forums

A question about PINK and HTML code

Don MDon M Posts: 1,653
edited 2009-10-26 21:39 in General Discussion
I have been looking through the examples but I don't see what I am looking for hence my question here-

Can I have the PINK module send out a serial command by virtue of just "pressing a button" on a web page that is stored in PINK? If so what HTML code would one use to do so? I see in the examples I can cause a variable to be stored in the PINK memory but the examples show a stamp retrieving the data from PINK·and not just automatically forwarding the variable.

Thanks.

Comments

  • steve_bsteve_b Posts: 1,563
    edited 2009-10-26 20:19
    You can push a web-button and store a value in a register.
    Then a stamp/SX/propellor can read that register (serially) and do the action you want....

    sb

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <FONT>Steve



    What's the best thing to do in a lightning storm? "take a one iron out the bag and hold it straight up above your head, even God cant hit a one iron!"
    Lee Travino after the second time being hit by lightning!
  • Don MDon M Posts: 1,653
    edited 2009-10-26 21:39
    After looking into this further and talking to the people at Netburner I see that what I am looking to do, I would need their development software package and need to program my own C code into the PINK (SB70) in order to send out commands upon a webpage button press.

    The way that it is now is exactly as you describe- you need something external to go and read a register. It won't just send out a hex value or command on its own.
Sign In or Register to comment.