Added TX code to pi serial