· 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.
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
·· 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
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.
·· 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
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
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
·· 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
·· 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 Williams
Applications Engineer, Parallax