It is currently Wed May 22, 2013 6:34 pm

All times are UTC - 7 hours [ DST ]




 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: Button press-----ttl hex out
PostPosted: Mon Sep 12, 2011 12:45 pm 
LCD?

Joined: Mon Sep 12, 2011 11:58 am
Posts: 5
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


Offline
 Profile  
 
 Post subject:
PostPosted: Mon Sep 12, 2011 3:51 pm 
Matrix Orbital
Matrix Orbital

Joined: Fri Aug 17, 2007 10:58 am
Posts: 755
Location: Matrix Orbital
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
Technical Support
Matrix Orbital
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron