• Hi,
    I'm using the temperature and humidity I²C sensor HTU21D in my current experiments. The bought Sparkfun HTU21D breakout had no prewired pull-up resistors on SCL or SDA. They are on the board but initial not connected. To enable I could bridge a solder jumper. Ok, long background...

    I would prefer to use the MCU-internal pull-ups and tried the following code which does not work:

    pinMode( B8, "input_pullup" );
    pinMode( B9, "input_pullup" );
    I2C1.setup( {scl: B8, sda: B9 } );
    

    Is this possible to use the MCU-internal pull-ups with i2c or can they only be used for simple input pins?

About

Avatar for luwar @luwar started