Controlling devices with the serial port and writing graphical interfaces