I am writing a C++ program for Pi4 to run LEGO motors connected to a BrickPi3. As soon as I instantiate a
BrickPi3 I get
spi_setup error. This is because the call to
open(SPIDEV_FILE_NAME, O_RDWR) returns -1.
I am running the latest image of Raspbian for Robots (buster) for the Pi4, on a Pi4 model B with 4 GB of RAM.
Is the C++ BrickPi3 API supported on Pi4?
[UPDATE] Also the Python API seems to have issues on my Pi4. I am getting:
~> pwd /media/pi/rootfs/home/pi/Dexter/BrickPi3/Software/Python/Examples ~> python Read_Info.py Traceback (most recent call last): File "Read_Info.py", line 17, in <module> import brickpi3 # import the BrickPi3 drivers File "build/bdist.linux-armv7l/egg/brickpi3.py", line 21, in <module> IOError: [Errno 2] No such file or directory
I have updated the software and firmware, checked that SPI is enabled, but no change.