Use raspberry pi as a logic analyser