On Mon, Jan 2, 2017 at 2:28 PM, Paul Fertser <[email protected]> wrote:
> As a sidenote, they already include libftdi1-1.2 in their repository > [1] so MSYS2 users do not need to compile anything if they do not need > the latest code. The PKGBUILD file claims it's getting built with > python2 bindings (and it has a build time dependency on python2) but > probably if python3 is installed before libftdi1 gets built, it'll > pick up that instead. > > [1] > https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-libftdi/PKGBUILD Thanks. I just tried it and indeed it works well. Since I installed Python 3.5 and not Python 2.7 under MSYS2, actually Python 3 binding is installed. mcuee@Win7HomeX64_PC MINGW64 /mingw64/lib/python3.5/site-packages $ ls _ftdi1.pyd ftdi1.py README mcuee@Win7HomeX64_PC MINGW64 /h/work/libftdi/libftdi1-1.2/python/examples $ python3 simple.py [FTDI version] major: 1, minor: 2, micro: 0, version_str: 1.2, snapshot_str: unknown ftdi.usb_open(): 0 ftdi.set_baudrate(): 0 mcuee@Win7HomeX64_PC MINGW64 /h/work/libftdi/libftdi1-1.2/python/examples $ python3 complete.py version: 1.2 devices: 1 #0: manufacturer="FTDI" description="FT232R USB UART" serial="A8007Ub5" turning everything on turning everything off enabling bit #0 (0x01) enabling bit #1 (0x02) enabling bit #2 (0x04) enabling bit #3 (0x08) enabling bit #4 (0x10) enabling bit #5 (0x20) enabling bit #6 (0x40) enabling bit #7 (0x80) pins: 0xff chip id: 30b7ef1 eeprom @ 1: 0x0403 eeprom: 00 40 03 04 01 60 00 00 a0 2d 08 00 00 00 98 0a a2 20 c2 12 23 10 05 00 0a 03 46 00 54 00 44 00 49 00 20 03 46 00 54 00 32 00 33 00 32 00 52 00 20 00 55 00 53 00 42 00 20 00 55 00 41 00 52 00 54 00 12 03 41 00 38 00 30 00 30 00 37 00 55 00 62 00 35 00 c9 bf 1c 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0f 23 device closed -- Xiaofan -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to [email protected]
