Unable to toggle output


I am trying to toggle IO33 and IO31 but the IO level is low all the time even when I Write(true).

_cs = new OutputPort(chipSelectPin, true);

The pins are for I2C, could this be the problem?

They are open drain. You need pull ups

Thanks! that did the trick