Still makes no sense to me what so ever. I don't see how writing a pin mode of 'F' makes any difference at all. The code in the krnel module would seem to do nothing in this case. Also at that point after the calls to SET_CONN the hardware will have been setup to perform i2c operations, so if it did change the pins it might well stop them from working correctly for i2c.. In leJOS we set the pins into float mode before we do the SET_CONN see the init code in the following:https://sourceforge.net/p/lejos/ev3/ci/ ... CPort.java
What happens if instead of setting the value to 'F' you set it to '-'? Does that work as well?