Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4501

Python • Python Program Freezes With SPI Enabled

$
0
0
Hi everyone! I've written my first Python program & this is my first experience with a Raspberry Pi. The program logs values from transducers in a CSV for later review. This is on a 4B with RasPiO's Analog Zero. With SPI enabled via raspi-config, my program runs for 12 seconds and then produces no more output on the terminal, it hangs but does not lock up the computer.
With SPI disabled, I receive a warning:
/home/user/Documents/project/lib/python3.11/site-packages/gpiozero/pins/pi.py:468: SPISoftwareFallback: failed to initialize hardware SPI, falling back to software (error was: 'can not open SPI device')
warnings.warn(
However the program runs fine. I am running the program from Geany. What should I do to troubleshoot this? My programming and RPi knowledge is very limited, so go easy on me. Thank you for any insight!

Statistics: Posted by pidontknow — Thu Sep 19, 2024 8:29 pm — Replies 0 — Views 24



Viewing all articles
Browse latest Browse all 4501

Trending Articles