Shop OBEX P1 Docs P2 Docs Learn Events
MEMKEY and SX/B — Parallax Forums

MEMKEY and SX/B

John.GrayJohn.Gray Posts: 22
edited 2006-05-11 19:34 in General Discussion
· I am playing around with MEMKEY and a keypad.· I really don't understand the MEMKEY to begin with.· I'm looking for some code examples to get me started.

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-05-11 15:25
    The MEMKey is a serial interface device, so talking to it shouldn't be too difficult.· There are code examples for the BASIC Stamp which should make it easy to port to SX/B.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • John.GrayJohn.Gray Posts: 22
    edited 2006-05-11 16:01
    I'm going through the documentation from MEMKEY. They have a code block for the MEMKEY, where use would there be a code example or two?
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-05-11 17:06
    John,

    ·· Not sure I understand your question.· Basically when the device is connected properly it will return an ASCII value corresponding to a key pressed on the connected matrix keypad.· This value will be returned serially.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • John.GrayJohn.Gray Posts: 22
    edited 2006-05-11 17:47
    I am trying to get the keypad to return the value for the key pressed and display it to the LCD, seems I'm having trouble with the LCD as well...if learning wasn't so frustrating, it wouldn't be fun. I had a program on the BS2 that would print on the LCD a statement and waint for a response. Depending on the key pressed, would goto a program. It was easy using the BS2 because of the debugger, with being new to the SX/B I'm tripping all over my two left thumbs.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-05-11 18:16
    John,

    ·· Keep at it, there are plenty of examples in the Help File and in these Forums.· Definately refer to the working BS2 example code to see what is happening.· That may help you to implement the same flow and logic in your SX/B Program.· Obviously there will be differences.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-05-11 19:34
    PBASIC doesn't directly translate to SX/B and that's probably the source of your frustration, John. You might want to study the SX/B projects examples to see how they work so you can get a feel for SX/B before porting other programs. It's not too tough, you just need to adopt a few new strategies.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.