Shop OBEX P1 Docs P2 Docs Learn Events
using the arrow keys instead of the number keys — Parallax Forums

using the arrow keys instead of the number keys

stavaststavast Posts: 1
edited 2007-02-18 19:30 in BASIC Stamp
Hello,

I want to be able to move the boebot with a bluetooth connection. everything works, accept for the fact that I only can use the numers on my keyboard to make the boebot move. instead of the numbers I want to use my arrow keys for the functions forward, reverse, left, right.

does anybody knows how I can program this?

·

Comments

  • SlikDSlikD Posts: 4
    edited 2007-02-18 03:38
    I used these ASCII codes to move the cursor in the debug window>
      [font=Verdana,Arial,Helvetica size=2][*]37(left arrow) [*]38(up arrow) [*]39(right arrow) [*]40(down arrow)

      Works fine.

      [/font]I am looking for code to send·FROM the BS2 BOE using·a e500 bluetooth·TO my laptop to activate the arrow keys. Got any clues? Share?

      SlikDhop.gif
    • FranklinFranklin Posts: 4,747
      edited 2007-02-18 19:28
      SlikD, that would be a function of the program on the laptop that was receiving the data. You would not be activating the arrow keys but moving the cursor in the program.

      ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
      - Stephen
    • QuattroRS4QuattroRS4 Posts: 916
      edited 2007-02-18 19:30
      SlikD,
      I have answered your post in the Propeller Forum

      http://forums.parallax.com/forums/default.aspx?f=25&m=167400

      ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
      'Necessity is the mother of invention'
    Sign In or Register to comment.