I ran an older Python script that used spidev and got an error for using xfer2:
I got this error:Is Python spidev no longer supported on RPi4b?
Code:
import spidevspi_device = 0spi_channel = 0max_speed_hz = 10000000 # 10MHzfram = spidev.SpiDev(spi_device, spi_channel)fram.max_speed_hz = max_speed_hzfram.xfer2([0x00, 0x00])
Code:
OSError: [Errno 22] Invalid argument
Statistics: Posted by chipace — Fri May 24, 2024 2:58 am