From cb76050aa4b5ef046b7d141a741ce9b9abb20b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?BenjaminDanneg=C3=A5rd?= Date: Thu, 30 Nov 2023 06:08:49 +0100 Subject: [PATCH 1/2] Added table for boards --- Language/Functions/Communication/Wire.adoc | 26 ++++++++++------------ 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/Language/Functions/Communication/Wire.adoc b/Language/Functions/Communication/Wire.adoc index 26c3e6df..b9aa4c08 100644 --- a/Language/Functions/Communication/Wire.adoc +++ b/Language/Functions/Communication/Wire.adoc @@ -20,20 +20,18 @@ This library allows you to communicate with I2C/TWI devices. On the Arduino boar As a reference the table below shows where TWI pins are located on various Arduino boards. -[cols="1,1"] -|=== -|Board -|I2C/TWI pins - -|UNO, Ethernet -|A4 (SDA), A5 (SCL) - -|Mega2560 -|20 (SDA), 21 (SCL) - -|Leonardo -|20 (SDA), 21 (SCL), SDA1, SCL1 -|=== +|================================================================================================================================================ +| Board | I2C/TWI pins | +| UNO R3 | 13(SDA), 14(SCL) | +| UNO R3 SMD, UNO Mini Ltd | 18(SDA), 19(SCL) | +| UNO WiFi Rev2 | 20(SDA), 21(SCL) | +| UNO R4 Minima, UNO R4 WiFi | 2(SDA), 1(SCL) | +| Micro, Yún Rev2 | D2(SDA), D3(SCL) | +| Leonardo, GIGA R1 WiFi | 20(SDA), 21(SCL), SDA1, SCL1 | +| Nano boards | A4(SDA), A5(SCL) | +| MKR boards | D11(SDA), D12(SCL) | +| Due, MKR Zero, Mega, Mega 2560 Rev3 | D20(SDA), D21(SCL) | +|================================================================================================================================================ 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()`. From b6036005f1e78456bde723ec2cbef4cc209fb839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20S=C3=B6derby?= <35461661+karlsoderby@users.noreply.github.com> Date: Tue, 5 Dec 2023 12:03:00 +0100 Subject: [PATCH 2/2] Update Language/Functions/Communication/Wire.adoc --- Language/Functions/Communication/Wire.adoc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Language/Functions/Communication/Wire.adoc b/Language/Functions/Communication/Wire.adoc index b9aa4c08..f556e331 100644 --- a/Language/Functions/Communication/Wire.adoc +++ b/Language/Functions/Communication/Wire.adoc @@ -21,16 +21,16 @@ This library allows you to communicate with I2C/TWI devices. On the Arduino boar As a reference the table below shows where TWI pins are located on various Arduino boards. |================================================================================================================================================ -| Board | I2C/TWI pins | -| UNO R3 | 13(SDA), 14(SCL) | -| UNO R3 SMD, UNO Mini Ltd | 18(SDA), 19(SCL) | -| UNO WiFi Rev2 | 20(SDA), 21(SCL) | -| UNO R4 Minima, UNO R4 WiFi | 2(SDA), 1(SCL) | -| Micro, Yún Rev2 | D2(SDA), D3(SCL) | -| Leonardo, GIGA R1 WiFi | 20(SDA), 21(SCL), SDA1, SCL1 | -| Nano boards | A4(SDA), A5(SCL) | -| MKR boards | D11(SDA), D12(SCL) | -| Due, MKR Zero, Mega, Mega 2560 Rev3 | D20(SDA), D21(SCL) | +| Board | I2C Default | I2C1 | I2C2 | Notes +| UNO R3, UNO R3 SMD, UNO Mini Ltd | A4(SDA), A5(SCL) | | | I2C also available on the SDA / SCL pins (digital header). +| 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). +| UNO WiFi Rev2, Zero | 20(SDA), 21(SCL) | | | +| Leonardo, Micro, Yùn Rev2 | D2(SDA), D3(SCL) | | | +| Nano boards | A4(SDA), A5(SCL) | | | +| MKR boards | D11(SDA), D12(SCL) | | | +| 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. +| Due | 20(SDA), 21(SCL) | D70(SDA1), D71(SCL1) | | Use `Wire1.begin()` for I2C1 +| Mega 2560 Rev3 | D20(SDA), D21(SCL) | | | |================================================================================================================================================