Shop OBEX P1 Docs P2 Docs Learn Events
How can i control my boe bot with the pc keyboard? — Parallax Forums

How can i control my boe bot with the pc keyboard?

DavidcueDavidcue Posts: 3
edited 2007-08-30 18:45 in BASIC Stamp
Hi!

I want to control my boe-bot with the keyboard·but i think that knowing ascii code of the arrows of the keyboard in pbasic i can control the movements of my boe bot. The problem is what i do not know the ascii code of this keys in pbasic.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-08-30 17:21
    The best way to do this is to write a little program in PBasic that uses DEBUGIN to read characters from the PC and echos them back in decimal (DEC) or hexadecimal (HEX) to the PC using DEBUG. Most programs on the PC like the Stamp Editor will probably absorb the arrow keys to use for their own positioning uses. The only way you might get them is to write your own PC program to communicate with the BoeBot.
  • cyplesmacyplesma Posts: 76
    edited 2007-08-30 18:17
    if you have vb you could make a program that captures the arrow keys, if you need a little more info look at keyup or keydown events and not the keypress event.
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2007-08-30 18:45
    Hi David, if you want control without a third party program and you have a numeric keypad that has arrows marked on the 2 4 6 8 buttons that might be the best solution,
    turn on num lock and away you go, a little reminiscent of the old games consoles.

    Jeff T.
Sign In or Register to comment.