2017-05-26 02:19:25 +02:00
|
|
|
# SPI Write
|
|
|
|
|
|
|
|
Write to the SPI Slave and return the response.
|
|
|
|
|
|
|
|
```sig
|
|
|
|
pins.spiWrite(0);
|
|
|
|
```
|
|
|
|
|
2017-09-07 22:42:08 +02:00
|
|
|
## Parameters
|
2017-05-26 02:19:25 +02:00
|
|
|
|
|
|
|
* ``value``: value Data to be sent to the SPI slave
|
|
|
|
|
2017-09-07 22:42:08 +02:00
|
|
|
## Returns
|
2017-05-26 02:19:25 +02:00
|
|
|
|
|
|
|
* a [number](/types/number) Response from the SPI slave
|
|
|
|
|
2017-09-07 22:42:08 +02:00
|
|
|
## See also
|
2017-05-26 02:19:25 +02:00
|
|
|
|
|
|
|
[SPI](https://developer.mbed.org/handbook/SPI)
|