Raspberry Pi GPIO testing code