I found the issue. Turns out the code was more or less fine (I did simplify the overly-complex decoding nonsense that I had).
The problem was with the wiring. I was testing the module's functionality on the Pi's side by writing to a register and then reading from it again, which mostly works except it won't catch any issues with the CE pin... which happened to be incorrectly wired.
I was consulting an incorrect pinout diagram for the Pi Zero, apparently meant only for wiringPi. I had no idea there were multiple pin number standards for these things.
The problem was with the wiring. I was testing the module's functionality on the Pi's side by writing to a register and then reading from it again, which mostly works except it won't catch any issues with the CE pin... which happened to be incorrectly wired.
I was consulting an incorrect pinout diagram for the Pi Zero, apparently meant only for wiringPi. I had no idea there were multiple pin number standards for these things.
Statistics: Posted by unencoded — Sat Dec 21, 2024 1:52 am