Skip to content

Commit 164fa94

Browse files
author
Amanda Butler
authored
Merge pull request #761 from ARMmbed/AnotherButler-patch-4
Add intro to example in SPI.md
2 parents df2f2eb + d7d7a5a commit 164fa94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/api/drivers/SPI.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ The SPI master generates a clock to synchronously drive a serial bit stream slav
2929

3030
### SPI hello, world
3131

32+
The following example uses the WHOAMI register. The WHOAMI register is an ID register of the slave device. In other words, it's just an example that you can write to a slave's register. In this example, Mbed OS acts as the SPI master, and DigitalOut acts as the slave chip select (cs).
33+
3234
[![View code](https://www.mbed.com/embed/?url=https://os.mbed.com/teams/mbed_example/code/SPI_HelloWorld/)](https://os.mbed.com/teams/mbed_example/code/SPI_HelloWorld/file/3789302f33bc/main.cpp)

0 commit comments

Comments
 (0)