- (2) Adafruit Feather RP2040 with RFM95 LoRa Radio - 915MHz
- (1) Adafruit AirLift FeatherWing – ESP32 WiFi Co-Processor
Misc:
- CircuitPython
- I updated to latest version of CircuitPython on my Feathers
Adafruit CircuitPython 8.1.0 on 2023-05-22; Adafruit Feather RP2040 RFM with rp2040
- I updated to latest libraries (i.e. adafruit_esp32spi, adafruit_rfm9x, etc)
Good news:
- I am able to send messages between the 2 LORA feathers
- I am able to use WiFI on the ESP32 Feather Wing when connected to one of my Feather Rp2040 LORA
Problem:
- How to use 2 SPI devices at the same time in Circuit Python using libraries adafruit_esp32spi and adafruit_rfm9x???
When I do the second "spi = busio.SPI(board.A0, board.A1, board.A2)" below, I get error
*** SPI peripheral in use
Code Sample
Code: Select all
rfm_cs = digitalio.DigitalInOut(board.RFM_CS)
rfm_reset = digitalio.DigitalInOut(board.RFM_RST)
rfm95 = adafruit_rfm9x.RFM9x(board.SPI(), rfm_cs, rfm_reset, 915.0)
esp32_cs = DigitalInOut(board.D13)
esp32_ready = DigitalInOut(board.D11)
esp32_reset = DigitalInOut(board.D12)
#Note, I am not stacking the feather & featherwing and am using wires to be able to have more flexibility
spi = busio.SPI(board.A0, board.A1, board.A2)
esp = adafruit_esp32spi.ESP_SPIcontrol(spi, esp32_cs, esp32_ready, esp32_reset)