Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bd49e8a

Browse files
Merge pull request #948 from BenjaminDannegard/benjamindannegard/wire-hardware-exceptions
Wire hardware exceptions
2 parents 0be9223 + b603600 commit bd49e8a

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

‎Language/Functions/Communication/Wire.adoc‎

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,18 @@ This library allows you to communicate with I2C/TWI devices. On the Arduino boar
2020

2121
As a reference the table below shows where TWI pins are located on various Arduino boards.
2222

23-
[cols="1,1"]
24-
|===
25-
|Board
26-
|I2C/TWI pins
27-
28-
|UNO, Ethernet
29-
|A4 (SDA), A5 (SCL)
30-
31-
|Mega2560
32-
|20 (SDA), 21 (SCL)
33-
34-
|Leonardo
35-
|20 (SDA), 21 (SCL), SDA1, SCL1
36-
|===
23+
|================================================================================================================================================
24+
| Board | I2C Default | I2C1 | I2C2 | Notes
25+
| UNO R3, UNO R3 SMD, UNO Mini Ltd | A4(SDA), A5(SCL) | | | I2C also available on the SDA / SCL pins (digital header).
26+
| UNO R4 Minima, UNO R4 WiFi | A4(SDA), A5(SCL) | Qwiic: D27(SDA), D26(SCL) | | I2C also available on the SDA / SCL pins (digital header).
27+
| UNO WiFi Rev2, Zero | 20(SDA), 21(SCL) | | |
28+
| Leonardo, Micro, Yùn Rev2 | D2(SDA), D3(SCL) | | |
29+
| Nano boards | A4(SDA), A5(SCL) | | |
30+
| MKR boards | D11(SDA), D12(SCL) | | |
31+
| GIGA R1 WiFi | 20(SDA), 21(SCL) | D102(SDA1), D101 (SCL1) | D9(SDA2), D8 (SCL2) | Use `Wire1.begin()` for I2C1, and `Wire2.begin()` for I2C2.
32+
| Due | 20(SDA), 21(SCL) | D70(SDA1), D71(SCL1) | | Use `Wire1.begin()` for I2C1
33+
| Mega 2560 Rev3 | D20(SDA), D21(SCL) | | |
34+
|================================================================================================================================================
3735

3836

3937
This library inherits from the Stream functions, making it consistent with other read/write libraries. Because of this, `send()` and `receive()` have been replaced with `read()` and `write()`.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /