BusIn how to enable pullups on pins

07 Aug 2011

Hi i'm trying to use BusIn but struggling where to enable pullups on pins ? on DigitalIn theres is a mode to select but not BusIn any suggestions please chris

08 Aug 2011

I found this in the following thread: http://mbed.org/forum/mbed/topic/178/?page=1#comment-708

#include "mbed.h"

BusInOut pins(p5, p6);

int main() {
    pins.mode(OpenDrain);
}
08 Aug 2011

Thanks for the info i'll have a go at that i opted for the resistor pullup as an interim measure that will now save me some solder

many thanks again

chris