Helper class to work with the Adafruit Bluefruit LE SPI friend breakout.
- Author(s): Kevin Townsend
Software and Dependencies:
- Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
- Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
BluefruitSPI(spi, cs, irq, reset, debug=False)¶
Helper for the Bluefruit LE SPI Friend
Send a command and check response code
Send a fully formed bytestring AT command, and check whether we got an ‘OK’ back. Returns payload bytes if there is any
Whether the Bluefruit module is connected to the central
Sends the SDEP initialize command, which causes the board to reset. This command should complete in under 1s.
Will read a Bluefruit Connect packet and return it in a parsed format. Currently supports Button and Color packets only
Reads byte data from the BLE UART FIFO.
Sends the specific bytestring out over BLE UART. :param data: The bytestring to send.