Module brickpi3
[frames] | no frames]

Module brickpi3

source code

Classes
  Enumeration
  FirmwareVersionError
Exception raised if the BrickPi3 firmware needs to be updated
  SensorError
Exception raised if a sensor is not yet configured when trying to read it with get_sensor
  BrickPi3
Functions
 
set_address(address, id)
Set the SPI address of the BrickPi3
source code
Variables
  FIRMWARE_VERSION_REQUIRED = "1.4.x"
  BP_SPI = spidev.SpiDev()
Function Details

set_address(address, id)

source code 

Set the SPI address of the BrickPi3

Keyword arguments: address -- the new SPI address to use (1 to 255) id -- the BrickPi3's unique serial number ID (so that the address can be set while multiple BrickPi3s are stacked on a Raspberry Pi).