メインコンテンツ

SPI インターフェイス

BeagleBone® Black の SPI インターフェイスの使用

BeagleBone Black の SPI インターフェイスを使用してデバイスに接続し、制御します。

オブジェクト

beagleboneConnection to BeagleBone Black hardware
spidevConnection to SPI device on BeagleBone Black hardware

関数

clearTerminate connection to BeagleBone Black hardware
showAllPinsShow diagram of all pins
showPinsShow diagram of GPIO pins
enableSPIEnable SPI interface
writeReadWrite data to and read data from SPI device

トピック

トラブルシューティング

Troubleshoot BeagleBone Black SPI Interface

SPI bus 1 shares pins with HDMI, which is enabled by default. Use showPins to view the current pin usage. If HDMI is enabled, disable HDMI before using enableSPI to enable this bus. For information on how to disable HDMI, see the BeagleBone Black hardware documentation.

注目の例