Page 1 of 1

LK204 USB under Linux

Posted: Tue Sep 20, 2011 7:56 am
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!

Posted: Tue Sep 20, 2011 10:17 am
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