Raspberry Pi Python code to interface with various Chips