Controlling a 74LS00 NAND Gate using PI