0

Feather M0 Bluefruit LE & CircuitPython
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Feather M0 Bluefruit LE & CircuitPython

by stonehippo on Sun Oct 27, 2019 11:13 am

Is the Adafruit Feather M0 Bluefruit LE usable for CircuitPython? I know it has the same SAMD21 as the Feather M0 Basic, and that board is listed on CircuitPython as working. Given that the M0 Bluefruit LE is basically a M0 Basic with an integrated BLE Friend, could I use the Basic M0 .bin with it? And is there support for the BLE Friend (SPI/UART) available for CircuitPython?

Thanks!

stonehippo
 
Posts: 33
Joined: Sat Aug 28, 2010 9:11 am

Re: Feather M0 Bluefruit LE & CircuitPython

by jerryn on Sun Oct 27, 2019 6:59 pm

Unfortunately, the Feather M0 Bluefruit LE will only function as an M0 Basic with CircuitPython. There is no built in support for the BLE device on that board (nRF51822}
The CP BLE support requires an nRF52840.
Last edited by jerryn on Sun Oct 27, 2019 7:08 pm, edited 1 time in total.

jerryn
 
Posts: 1462
Joined: Sat Sep 14, 2013 9:05 am

Re: Feather M0 Bluefruit LE & CircuitPython

by jerryn on Sun Oct 27, 2019 7:05 pm

There is a library to support he BLE SPI friend and the BLE on the M0 Bluefruit LE — see this example https://learn.adafruit.com/munny-lamp/code-with-circuitpython

The library is here https://github.com/adafruit/Adafruit_CircuitPython_BluefruitSPI

jerryn
 
Posts: 1462
Joined: Sat Sep 14, 2013 9:05 am

Re: Feather M0 Bluefruit LE & CircuitPython

by stonehippo on Sun Oct 27, 2019 7:57 pm

Perfect, that seems to be exactly what I needed to know.

stonehippo
 
Posts: 33
Joined: Sat Aug 28, 2010 9:11 am

Re: Feather M0 Bluefruit LE & CircuitPython

by stonehippo on Fri Apr 09, 2021 5:23 pm

Incidentally, for anyone who comes across this post, I have CircuitPython working on a Feather M0 Bluefruit LE. I had to install the UF2 bootloader, which I did following these instructions: https://learn.adafruit.com/installing-c ... bootloader (I used the normal Feather M0 .ino)

Once that was done, I installed the Feather M0 Adalogger CircuitPython image from https://circuitpython.org/board/feather_m0_adalogger/. I suspect that the Feather M0 Basic image would work just as well.

I also grabbed the CircuitPython Bluefruit LE SPI helper from https://github.com/adafruit/Adafruit_Ci ... uefruitSPI, and installed it along with its dependency (adafruit_bus_device). After that, things worked as expected; I can connect to and control the nRF51 via the helper.

stonehippo
 
Posts: 33
Joined: Sat Aug 28, 2010 9:11 am

Please be positive and constructive with your questions and comments.