Shop OBEX P1 Docs P2 Docs Learn Events
keyboard to boebot — Parallax Forums

keyboard to boebot

Jayguy5000Jayguy5000 Posts: 139
edited 2005-08-01 23:24 in BASIC Stamp
I can hook my keyboard up to the breadboard on my boebot, but is it possible to write a code that would display in ASCII in the debug terminal what key i am pressing?
~Jeremy

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-07-31 00:36
    Here's a very simple way:

    Main:
    · DEBUGIN char
    · DEBUG char
    · GOTO Main

    Make sure that you have PBASIC 2.5 specified in order to use DEBUGIN.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • Jayguy5000Jayguy5000 Posts: 139
    edited 2005-07-31 00:41
    im sure that makes sense to everyone but me..Im not sure what else to put for the I/O pin and anything else required.
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-07-31 01:28
    Sorry, I missed the breadboard thing. DEBUG and DEBUGIN work through the programming port.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • Jayguy5000Jayguy5000 Posts: 139
    edited 2005-07-31 01:44
    so how much code am i going to have to write to have it display in ASCII what I type on the keyboard? sorry im kinda lost..
    ~Jeremy
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-07-31 11:22
    The problem is the keyboard interface -- it's not trivial. I believe Al Williams has a keyboard decoder chip that works for the Stamp; you may want to check his site. Displaying the ASCII code is pretty simple; getting the code from the keyboard is the tougher part.

    http://www.awce.com/pak6.htm

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • Donald BartleyDonald Bartley Posts: 19
    edited 2005-08-01 23:24
    There is also the ezKEY from Multilabs www.multilabs.net

    It returns ASCII data from a keyboard.
Sign In or Register to comment.