[WT-support] LUA script function for LPT?

Peter Stuge peter at stuge.se
Thu Apr 7 18:26:47 CEST 2011


Carlos Neves (CT3FQ) wrote:
> I need to change a LPT pin status under particular conditions, is
> there any funtion to make that kind of control?

In case there isn't, it's not completely trivial in Windows NT based
operating systems. (any flavor NT, 2000, XP, Vista or 7)

For easy programmability I'd suggest a USB microcontroller and using
libusb for the host software. There's a lualibusb binding at
luaforge.net, which should make it easy to access the device.

I personally like the cheap Olimex LPC-P1343 board:
http://olimex.com/dev/lpc-p1343.html

Here's some sample source for a project I do in a workshop with the
above board:
http://stuge.se/lpc-p1343_buttons.zip (or .tar.gz or .tar.bz2)


//Peter


More information about the Support mailing list