Re: Controlling hardware with lua (via USB interface)?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Controlling hardware with lua (via USB interface)?
- From: Renato Cerqueira <rcerq@...>
- Date: 2004年4月23日 18:14:37 -0300
You can check if there is a COM API to access USB ports.
In this case, you could use LuaCom to access them.
(it works with the COM interface for serial ports).
Regards,
Renato
On Apr 23, 2004, at 9:05 AM, <Goetz.Kluge@infineon.com> wrote:
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