Set codes to be sent over serial port