• Thanks for the answers everyone :)

    Just to clear up about input_pullup: That is when the output is a GPIO input (rather than connected to an 'alternate function' like I2C). I believe the chip itself uses the data output value to dictate whether to pull up or down, which makes it difficult (if not impossible) to use it for anything that's also an output (like I2C).

    I tried to use it for OneWire, but had very little luck getting it to work. My understanding is that the F4 chips (like the one in Pico) have separate registers for pullup/pulldown, so they may be able to use the pullups in conjunction with I2C - I need to look into that a bit more, but I don't believe this is possible with the normal Espruino board.

About

Avatar for Gordon @Gordon started