forked from microsoft/pxt-microbit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
160 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# SPI Format | ||
|
||
Sets the SPI format | ||
|
||
```sig | ||
pins.spiFormat(8, 3); | ||
``` | ||
|
||
### Parameters | ||
|
||
* ``bits``, | ||
* ``mode``, | ||
|
||
### See also | ||
|
||
[SPI](https://developer.mbed.org/handbook/SPI) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# SPI Write | ||
|
||
Write to the SPI Slave and return the response. | ||
|
||
```sig | ||
pins.spiWrite(0); | ||
``` | ||
|
||
### Parameters | ||
|
||
* ``value``: value Data to be sent to the SPI slave | ||
|
||
### Returns | ||
|
||
* a [number](/types/number) Response from the SPI slave | ||
|
||
### See also | ||
|
||
[SPI](https://developer.mbed.org/handbook/SPI) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# SPI Pins | ||
|
||
Sets the SPI MOSI, MISO and SCK pins | ||
|
||
```sig | ||
pins.spiPins(DigitalPin.P0, DigitalPin.P1, DigitalPin.P2); | ||
``` | ||
|
||
### Parameters | ||
|
||
* ``MOSI``, the ``MOSI`` pin | ||
* ``MISO``, the ``MISO`` pin | ||
* ``SCK``, the ``SCK`` pin | ||
|
||
### See also | ||
|
||
[SPI](https://developer.mbed.org/handbook/SPI) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters