Search found 4 matches

by jro@team
Tue Aug 23, 2022 12:37 pm
Forum: General Software Discussions
Topic: usb_tc08_get_unit_info() from Python 3.9
Replies: 5
Views: 2469

Re: usb_tc08_get_unit_info() from Python 3.9

Bump again. Still no fix for a bug, though you're apparently happy enough to add new features.
by jro@team
Thu Aug 11, 2022 3:41 pm
Forum: General Software Discussions
Topic: usb_tc08_get_unit_info() from Python 3.9
Replies: 5
Views: 2469

Re: usb_tc08_get_unit_info() from Python 3.9

Bump. This still isn't officially fixed in the github repo, the "Fix typo" of July 22nd has no effect at all.
by jro@team
Fri Jul 22, 2022 1:31 pm
Forum: General Software Discussions
Topic: usb_tc08_get_unit_info() from Python 3.9
Replies: 5
Views: 2469

Re: usb_tc08_get_unit_info() from Python 3.9

Thanks NeilH. That fix doesn't work, but I've had a look at what I think should work and come up with this: from picosdk.usbtc08 import usbtc08, USBTC08_INFO from ctypes import Structure, byref, c_char, c_int16, sizeof class myUSBTC08_INFO(Structure): _pack_ = 1 _fields_ = [ ("size", c_int16), ("Dri...
by jro@team
Fri Jul 22, 2022 10:14 am
Forum: General Software Discussions
Topic: usb_tc08_get_unit_info() from Python 3.9
Replies: 5
Views: 2469

usb_tc08_get_unit_info() from Python 3.9

Is there a working example of this? It seems totally broken to me. I'd expect this to sort of work: from picosdk.usbtc08 import usbtc08, USBTC08_INFO from ctypes import byref infs = USBTC08_INFO() hdl = usbtc08.usb_tc08_open_unit() ok = usbtc08.usb_tc08_get_unit_info(hdl,byref(infs)) print(infs) pri...