Xiaofan Chen
2017-01-08 12:57:40 UTC
MyMacMini:python xiaofanc$ python complete.py
version: 1.3
devices: 1
#0: manufacturer="FTDI" description="FT232R USB UART" serial="A8007Ub5"
turning everything on
Traceback (most recent call last):
File "complete.py", line 63, in <module>
ftdi.write_data(ftdic, chr(0xff), 1)
TypeError: write_data() takes exactly 2 arguments (3 given)
After removing the last argument, i.e., deleting " , 1", it seems to
work fine. Maybe there is a change between libftdi1 version 1.2 and 1.3.
MyMacMini:python xiaofanc$ python complete.py
version: 1.3
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
version: 1.3
devices: 1
#0: manufacturer="FTDI" description="FT232R USB UART" serial="A8007Ub5"
turning everything on
Traceback (most recent call last):
File "complete.py", line 63, in <module>
ftdi.write_data(ftdic, chr(0xff), 1)
TypeError: write_data() takes exactly 2 arguments (3 given)
After removing the last argument, i.e., deleting " , 1", it seems to
work fine. Maybe there is a change between libftdi1 version 1.2 and 1.3.
MyMacMini:python xiaofanc$ python complete.py
version: 1.3
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 libftdi+***@developer.intra2net.com
Xiaofan
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com