getting bluefruitspi_simpletest working on Feather nRF52840

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
tonyhansen
 
Posts: 31
Joined: Fri Nov 29, 2013 12:37 am

getting bluefruitspi_simpletest working on Feather nRF52840

Post by tonyhansen »

If I copy bluefruitspi_simpletest.py over to the CIRCUITPY drive as main.py, it complains about
AttributeError: 'module' object has no attribute 'D8'
on this line from the code:

Code: Select all

cs = DigitalInOut(board.D8)
irq = DigitalInOut(board.D7)
rst = DigitalInOut(board.D4)
bluefruit = BluefruitSPI(spi_bus, cs, irq, rst, debug=False)
Any suggestions?

User avatar
jerryn
 
Posts: 1868
Joined: Sat Sep 14, 2013 9:05 am

Re: getting bluefruitspi_simpletest working on Feather nRF52

Post by jerryn »

I’m confused. The bluefruitspi library is used with an https://www.adafruit.com/product/2995, not the nrf52480.
What are you trying to do?

Edited to add: for the nrf52840 use https://github.com/adafruit/Adafruit_Ci ... E/releases with Circuitpython 5.0 alpha.

User avatar
tonyhansen
 
Posts: 31
Joined: Fri Nov 29, 2013 12:37 am

Re: getting bluefruitspi_simpletest working on Feather nRF52

Post by tonyhansen »

I'd like to use the BLE on the nrf52480 as a small client returning data. Specifically I'd like to get a stream of sensor state FROM the nrf52480. The simpletest code looked like it might be a good place to start. (The docs aren't always updated as things progress, so it's not always easy to tell what the current state of the CP support is for different products.)

I'll take a closer look at the 5.0alpha code. Thanks for that pointer.

User avatar
jerryn
 
Posts: 1868
Joined: Sat Sep 14, 2013 9:05 am

Re: getting bluefruitspi_simpletest working on Feather nRF52

Post by jerryn »

Good luck. Make sure you use the alpha release of the BLE library with CP5.0 alpha. See the examples in the library repository. The adafruit_ble library in the Bundle won’t work.
BLE support is rapidly evolving.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”