|
Well I don't mean to be short or rude, but if you have a C library, you can add it to Lua.
Having said that, I'm unaware of any USB libraries available for Lua under Windows.
You might check out this package as part of the "glue-piece", however:
http://libusb-win32.sourceforge.net/
Good luck and let me know what you can work out!
-joe
-----Original Message-----
From: Goetz.Kluge@infineon.com [mailto:Goetz.Kluge@infineon.com]
Sent: Friday, April 23, 2004 8:06 AM
To: lua@bazar2.conectiva.com.br
Subject: Controlling hardware with lua (via USB interface)?
I need bidirectional access (unfortunately under Windows) to a port of a
PC in order to control 2 pins.
This is for emulating an I2C-interface.
As the parallel interface has no long term future, I would like to use
USB.
Here are these alternatives:
(1) Direct bitbanging (violating the USB spec),
(2) Driving via USB an IC which does USB/parallel-IO conversion,
(3) Driving via USB an IC which does USB/I2C conversion.
Any hints on how to do that with Lua under Windows?
Goetz