| 
      
      
      From: Xiaofan C. <xia...@gm...> - 2006-09-11 23:06:05
      
     | 
| On 9/8/06, Ray Schumacher <ra...@bl...> wrote: > I just tried to wrap libusb0.dll with ctypes' codegenerator, > http://starship.python.net/crew/theller/ctypes/old/codegen.html > >python C:\Python24\Lib\site-packages\ctypes\wrap\h2xml.py usb.h -o usb.xml -c > Sorry I am not so sure what you want to achieve but you might want to look at the following two projects if you want to use libusb with Python. Both works under Linux/Windows/Mac OS X. 1) BITPIM libusb Python wrapper http://www.bitpim.org/pyxr/c/projects/bitpim/src/native/usb/usb.py.html Mark Rages is using it for the pyk project, a Python program to talk to PICkit 2 (a small USB programmer for Microchip PICs) under Linux. I've tried it under Windows and it works well. 2) PyUSB http://pyusb.berlios.de/ I've tested it with PICKit 2 and it works too. Regards, Xiaofan |