Open
Description
How are you supposed to pass the data variable into wiringPiSPIDataRW by reference? I've tried a variety of ctypes with no luck.
Trying something like:
mydata = (ctypes.c_ubyte * 2)()
returncode = wiringpi.wiringPiSPIDataRW(pin,ctypes.byref(mydata), 2)
All I get is:
TypeError: in method 'wiringPiSPIDataRW', argument 2 of type 'char *'
Metadata
Metadata
Assignees
Labels
No labels