Page 1 of 1
Button press-----ttl hex out
Posted: Mon Sep 12, 2011 12:45 pm
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
Posted: Mon Sep 12, 2011 3:51 pm
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