Code for Raspberry Pi controlled TV console