Closed crabmusket closed 7 years ago
It can be related to this issue: https://github.com/kidoman/embd/issues/24. This PR https://github.com/kidoman/embd/pull/39/files can be helpful.
Oh, I could have sworn I searched for SPI in issues first. That does look relevant; thanks!
I'm trying to get SPI working to interface with an MCP3008 ADC. I can do it fine in Python:
But I tried using embd by copying the code in this post. I also tried it with raw SPI as follows:
The blog code and my code both result in:
I tried more logging but it looks okay:
I also had a look at the kernel but couldn't figure out what would cause an error.
Oh, I'm on a Raspberry Pi B+ if that helps. Cross-compiling from Debian, Go 1.5 using
EDIT: I wonder if the dynamically linked C libs could be different on the Pi? Maybe I should try compiling there.