Closed charles-d-burton closed 2 years ago
It looks like you swapped MOSI and MISO. GP19 is SPI0 TX (MOSI) and GP16 is SPI0 RX (MISO). So you get "invalid pins".
The signature is busio.SPI(clock, MOSI, MISO)
That helped for sure, ran into another error but it was soldering flux that didn't quite get washed off.
code.py output:
Temperature: 22.0C
Frequency: 914.999mhz
Bit rate: 250.0kbit/s
Frequency deviation: 250000.0hz
Sent hello world message!
Waiting for packets...```
CircuitPython version
Code/REPL
Pull directly from the RFM69HCW tutorial on your website. Code adapted to use the Pico pins
Behavior
Complains about invalid pins Traceback (most recent call last): File "code.py", line 31, in
ValueError: Invalid pins
Description
It's pretty self-explanatory. I'm trying to initialize the SPI bus on my Pico and cannot get it to work.
Additional information
No response