Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Circuit Python support for Bluefruit LE SPI
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Circuit Python support for Bluefruit LE SPI

by mwhuffnagle on Sun Feb 16, 2020 4:15 pm

I have a Metro M4 Express and a Bluefruit LE SPI Friend (2633). I would like to use Circuit Python to communicate with the Bluefruit board. I have CircuitPython 4.1.2 loaded onto the Metro M4. I have seen references to the nRF52840 but it looks like that's not what the 2633 is based on.

I did try to load and run one of the example programs from adafruit-ble but __init__.py squawked about needing a version higher than 4.

Is there support for the 2633 in CircuitPython? Do I need to go to version 5?

Thank you,

Mike

mwhuffnagle
 
Posts: 5
Joined: Sat May 27, 2017 9:59 pm

Re: Circuit Python support for Bluefruit LE SPI

by danhalbert on Fri Feb 21, 2020 3:18 pm

There is a helper library for the Bluefruit LE SPI friend: https://github.com/adafruit/Adafruit_Ci ... uefruitSPI. But it works completely differently than the native BLE support on the nRF52840, so you won't be able to use our other BLE libraries with it. Sorry!

danhalbert
 
Posts: 2138
Joined: Tue Aug 08, 2017 12:37 pm

Re: Circuit Python support for Bluefruit LE SPI

by mwhuffnagle on Sun Feb 23, 2020 7:38 pm

Dan,

Thanks for the response. That has proven to be very helpful. I have finally been able to get the adafruit_bluefruitspi (.py) file to work. I had to make two small changes in the _cmd method where it was doing a struct.unpack of _buf_rx. I put all of the details about that change in a reply to a post by another user which was titled "Bluefruit SPI Friend/Feather M4 Express AT Commands failing".

Mike

mwhuffnagle
 
Posts: 5
Joined: Sat May 27, 2017 9:59 pm

Re: Circuit Python support for Bluefruit LE SPI

by danhalbert on Sun Feb 23, 2020 10:03 pm

Thanks, for anyone following this the other thread is at viewtopic.php?f=53&t=157857&p=799729#p799697

danhalbert
 
Posts: 2138
Joined: Tue Aug 08, 2017 12:37 pm

Please be positive and constructive with your questions and comments.