You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/03.nano/boards/nano-matter/tutorials/user-manual/content.md
+74-59Lines changed: 74 additions & 59 deletions
Original file line number
Diff line number
Diff line change
@@ -1226,11 +1226,11 @@ After pressing the push button, you will see a **"Button Pressed!"** message in
1226
1226
1227
1227
The Nano Matter features a built-in RGB LED that can be a visual feedback indicator for the user. The LED is connected through the board GPIO's; therefore, usual digital pins built-in functions can be used to operate the LED colors.
1228
1228
1229
-
|**LED Color Segment**|**Arduino Name**|**Microcontroller Pin**|
The digital-to-analog converters of the Nano Matter can be used as outputs through the built-in functions of the Arduino programming language.
1531
1532
@@ -1618,24 +1619,32 @@ This section of the user manual covers the different communication protocols tha
1618
1619
1619
1620
### SPI
1620
1621
1621
-
The Nano Matter supports SPI communication, which enables data transmission between the board and other SPI-compatible devices. The pins used in the Nano Matter for the SPI communication protocol are the following:
1622
+
The Nano Matter supports SPI communication, which enables data transmission between the board and other SPI-compatible devices. It counts with two SPI interfaces and the pins used in the Nano Matter for the SPI communication protocol are the following:
Please, refer to the [board pinout section](#pinout) of the user manual to localize them on the board.
1631
1636
1637
+
***You can not use __SPI1__ and __UART__ interfaces at the same time because they share pins.***
1638
+
1632
1639
Include the `SPI` library at the top of your sketch to use the SPI communication protocol. The SPI library provides functions for SPI communication:
1633
1640
1634
1641
```arduino
1635
1642
#include <SPI.h>
1636
1643
```
1637
1644
1638
-
In the `setup()` function, initialize the SPI library, define and configure the chip select (`SS`) pin:
1645
+
In the `setup()` function, initialize the SPI peripheral, define and configure the chip select (`SS`) pin:
1646
+
1647
+
***Use SPI.begin() for SPI0 and SPI1.begin() for SPI1.***
1639
1648
1640
1649
```arduino
1641
1650
@@ -1679,12 +1688,14 @@ The example code above should output this:
1679
1688
1680
1689
### I2C
1681
1690
1682
-
The Nano Matter supports I2C communication, which enables data transmission between the board and other I2C-compatible devices. The pins used in the Nano Matter for the I2C communication protocol are the following:
1691
+
The Nano Matter supports I2C communication, which enables data transmission between the board and other I2C-compatible devices. The Nano Matter features two I2C interfaces and the pins used in the Nano Matter for the I2C communication protocol are the following:
Please, refer to the [board pinout section](#pinout) of the user manual to localize them on the board.
1762
1775
1776
+
***You can not use __UART__ and __SPI1__ interfaces at the same time because they share pins.***
1777
+
1763
1778
To begin with UART communication, you will need to configure it first. In the `setup()` function, set the baud rate (bits per second) for UART communication:
0 commit comments