Mar-01-2022, 05:31 AM
(Mar-01-2022, 04:42 AM)deanhystad Wrote: Use array instead of lists.Hi deanhystad,
Thanks for the reply. When I create list using numpy library and change line where I initialize "data", I get below error:
import numpy as np #changed initialization of data to: data= np.arange(1024) #also tried: np.zeros(1024,ctypes.c_uint8), also get same errorError:
File "2crc_spi.py", line 48, in spi_process spi.xfer2(data) TypeError: Non-Int/Long value in arguments: b5410b00But spi only transfers a byte at a time, not sure why it says non-int value. Any suggestion for this?