Open neozerosv opened 5 years ago
The main issue is that i had both modules enabled,
/boot/config.txt
#dtoverlay=at86rf233
And also this module must be blacklisted so that no program or module take control of the SPI 0,0 and the python program be able to access it.
cat /etc/modprobe.d/raspi-blacklist.conf
blacklist at86rf230
After that the SPI 0,0 is available.
ls -alh /dev/spi*
crw-rw---- 1 root spi 153, 0 May 9 22:32 /dev/spidev0.0
crw-rw---- 1 root spi 153, 1 May 9 22:32 /dev/spidev0.1
YAY.
After enabling SPI in a raspberry pi
It showed me that message. I had to find out wich ID of SPI i had with
And then replace the
with
self.__spi.open(0,1)
It worked for me like this blog said https://www.raspberrypi.org/forums/viewtopic.php?t=154317I guess it should need to read that file to set those vatiables. like this code
My enviroment:
Check: https://elinux.org/RPi_HardwareHistory for HW version