Changes

Jump to: navigation, search

SBCX-TN-001: Android Things and SPI bus

16 bytes added, 10:57, 11 April 2018
Managing the device connection
=== Managing the device connection ===
In order to open a connection to a particular SPI slave, you need to know the unique name of the bus.The get this name, Boot the developer board and run the following command from the serial console to get the name:
<pre>
root@sbcx:/ # ls /dev/spi* -al
crw-rw-rw- system root 153, 0 1970-01-01 00:00 spidev32765.0
</pre>
It is important to note that the above method is the only one available to retrieve the SPI device name because <code>getSpiBusList()</code> function is not implemented within the library.
Is important to note that the above method Once this name is known, the only method available in order APIs defined by Android Things can be used to retrieve access the spi device name bus because <code>getSpiBusList()</code> function is not implemented within the library. Once you know the target name, the API of the library library—named <code>eu.dave.spi_dev</code> follow the Android things nomenclature —is consistent with them:
<pre>
public class HomeActivity extends Activity {
4,650
edits

Navigation menu