Button press-----ttl hex out

LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT Series

Moderators: Henry, Mods

Post Reply
ourstreaming
LCD?
Posts: 7
Joined: Mon Sep 12, 2011 11:58 am

Button press-----ttl hex out

Post by ourstreaming »

I have a LK202 25 with the 7 button overlay. I want to send ttl hex code out to the serial port, by pressing one of the buttons. Can you send me a short example in c or basic. Or is this possible?
Thanks
Leon

Clark
Matrix Orbital
Matrix Orbital
Posts: 881
Joined: Fri Aug 17, 2007 10:58 am
Location: Matrix Orbital
Contact:

Post by Clark »

Hi Leon,

Each button connected to the LK202-25 header will return a single byte through the serial port. You can Assign Keypad Codes using the command in your manual to return a desired value for each key.

The AppNote section on our .ca site will have a variety of examples in a number of languages. For your purposes I would suggest the input/output example of the C++ pack, but you can browse the files there to find inspiration for your own program.

Thanks,
~Troy
Troy Clark
Design & Development
Matrix Orbital

Post Reply