adafruit / nina-fw

Firmware for u-blox NINA W102 WiFi/BT module
83 stars 43 forks source link

Arduino Nano RP2040 Connect compatibility #39

Open matemaciek opened 2 years ago

matemaciek commented 2 years ago

Is this fork compatible with Arduino Nano RP2040 Connect? I see that original repo has seperared builds for this board, so I guess I'd need a dedicated build here to?

ladyada commented 2 years ago

nope! we use a different pinout - you should stick to arduino's firmware, its very specialized on the rp2040

matemaciek commented 2 years ago

Thanks for a quick reply! Is it possible to use BLE in CircuitPython via original arduino's firmware?

ladyada commented 2 years ago

no idea :/ you could try it!

matemaciek commented 2 years ago

It looks like it doesn't, or I'm doing something wrong )-:

import board
from adafruit_airlift.esp32 import ESP32
esp32 = ESP32(tx=board.TX, rx=board.RX)
adapter = esp32.start_bluetooth()

results in:

Traceback (most recent call last):
  File "code.py", line 4, in <module>
  File "adafruit_airlift/esp32.py", line 185, in start_bluetooth
_bleio.BluetoothError: Timeout waiting for HCI response
matemaciek commented 2 years ago

After reading code and schematics it seems that the main problem is that CS and UART RX are on the same pin in Arduino Nano board.