Skip to main content
Arduino

Return to Answer

Added "To disable the internal pull-ups:" because the above quote quote from the datasheet talks about enabling.
Source Link

From the datasheet:

Note that the internal pull-ups in the AVR pads can be enabled by setting the PORT bits corresponding to the SCL and SDA pins, as explained in the I/O Port section.

To disable the internal pull-ups:

digitalWrite(A4, LOW);
digitalWrite(A5, LOW);

or

digitalWrite(2, LOW);
digitalWrite(3, LOW);

From the datasheet:

Note that the internal pull-ups in the AVR pads can be enabled by setting the PORT bits corresponding to the SCL and SDA pins, as explained in the I/O Port section.

digitalWrite(A4, LOW);
digitalWrite(A5, LOW);

or

digitalWrite(2, LOW);
digitalWrite(3, LOW);

From the datasheet:

Note that the internal pull-ups in the AVR pads can be enabled by setting the PORT bits corresponding to the SCL and SDA pins, as explained in the I/O Port section.

To disable the internal pull-ups:

digitalWrite(A4, LOW);
digitalWrite(A5, LOW);

or

digitalWrite(2, LOW);
digitalWrite(3, LOW);
Source Link

From the datasheet:

Note that the internal pull-ups in the AVR pads can be enabled by setting the PORT bits corresponding to the SCL and SDA pins, as explained in the I/O Port section.

digitalWrite(A4, LOW);
digitalWrite(A5, LOW);

or

digitalWrite(2, LOW);
digitalWrite(3, LOW);
lang-cpp

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