Skip to content

Commit 3ef5546

Browse files
authored
Merge pull request #1483 from arduino/jacobhylen/minimai2c
[MKC-1228] Elaborate on Minima I2C implementation
2 parents 4057d8f + b1352c7 commit 3ef5546

File tree

1 file changed

+8
-0
lines changed
  • content/hardware/02.hero/boards/uno-r4-minima/tutorials/cheat-sheet

1 file changed

+8
-0
lines changed

content/hardware/02.hero/boards/uno-r4-minima/tutorials/cheat-sheet/cheat-sheet.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,11 @@ I2C lets you connect multiple I2C-compatible devices in series using only two pi
362362

363363
The UNO R4 Minima has one I2C bus which is marked with SCL and SDA. They are shared with A4 (SDA) and A5 (SCL) which owners of previous UNOs are familiar with. The pullups are not mounted on the PCB but there are footprints to do so if needed.
364364

365+
There are a couple of advantages to not mounting the pullup resistors from the factory:
366+
367+
- As the pins used for I2C are directly connected to A4 and A5 respectively, they are also able to be used as digital input/output, and analog input pins. Mounting I2C pullup resistors to these pins would limit the functionality to only I2C, as they would be locically `HIGH` by default.
368+
- By choosing to mount different resistances, you are able to select if you want to operate a 3.3 V or a 5 V I2C device with these pins.
369+
365370
The pins used for I2C on the UNO R4 Minima are the following:
366371
- SDA - D18 or A4
367372
- SCL - D19 or A5
@@ -386,6 +391,9 @@ Wire.write(byte(0x00)); //send instruction byte
386391
Wire.write(val); //send a value
387392
Wire.endTransmission(); //stop transmit
388393
```
394+
395+
Learn more about the I2C protocol in our [I2C Protocol Guide](/learn/communication/wire)
396+
389397
## USB Serial & UART
390398

391399
The UNO R4 Minima board features two separate hardware serial ports.

0 commit comments

Comments
 (0)