Main Content
device
Connect to device on I2C or SPI bus on BBC micro:bit board
Syntax
Description
creates an object that represents the connection to an I2C device connected to the I2C bus
on the BBC micro:bit board, specified as a microbit object.microbitdevObj
= device(microbitObj
,'I2CAddress',"address
")
creates an object that represents the connection to a SPI device connected to the SPI bus on
the BBC micro:bit board, specified as a microbit object.microbitdevObj
= device(microbitObj
,'SPIChipSelectPin',"pin
")
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2017b