I have a TTL switch which is at 3.3v nominal and is triggered when pulled to ground.
I was previously using my Arduino to trigger this switch with the following:
digitalWrite(7, LOW); pinMode(7, OUTPUT); delay(2000); delay(100); pinMode(7, INPUT);
I’m attempting to do the same on my panda 2 but not having much luck
var pow = new OutputPort((Cpu.Pin)FEZ_Pin.Digital.Di13, false); pow.Write(false); //should be redundant Thread.Sleep(200); pow.Dispose(); var p2 = new InputPort((Cpu.Pin)FEZ_Pin.Digital.Di13, false, Port.ResistorMode.Disabled);
I can probably get away with writing low and then writing high but because the device being switched and the panda have different power supplies I’d like to avoid it and return the pin to a free state.