Reading the P1 port with a Raspberry Pi