LK204 USB under Linux

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

Moderators: Henry, Mods

Post Reply
cl4x
LCD?
Posts: 1
Joined: Tue Sep 20, 2011 7:45 am

LK204 USB under Linux

Post by cl4x »

Hi,
i have buy LK204-7T-IU-USB-TCI for use under a Linux Server.
I have create a "hello world" page in c++, but i don't know how use:
- the three led at left of the panel
- the action of keypad

and, is possible use a bash script? if i try
echo "test" >> /dev/ttyUSB001
it work well, but it use only 3 row.


My target is show ip address, then:
in bash:
cat /etc/sysconfig/network/ifcfg-eth0 | grep "IPADDR=" | awk -F"'" 'NR==1{print "IP:"$2}' >> /dev/ttyUSB0

and in c++ ??
:-\

thanks in advance!

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

Post by Clark »

Hi cl4x,

Good to hear you have "hello world" running on your LK204-7T-1U-USB; if you are comfortable with C++ check out the input/output portion of this appnote. It was written for this type of display so the GPO toggling and keypad reading functions used should provide clear direction for your application.

I don't see a reason why you couldn't use bash scripts to communicate to the display, but due to the multi platform capability of C I believe you'll have more support in that language.

Thanks,
~Troy
Troy Clark
Design & Development
Matrix Orbital

Post Reply