Ejemplo n.º 1
0
        /// <summary></summary>
        /// <param name="socketNumber">The socket that this module is plugged in to.</param>
        public NextionDisplay(int socketNumber)
        {
            Socket socket = Socket.GetSocket(socketNumber, true, this, "U");

            socket.EnsureTypeIsSupported('U', this);

            Display = new Driver.NextionDisplay(new System.IO.Ports.SerialPort(socket.SerialPortName, 9600));
        }
Ejemplo n.º 2
0
 public void Dispose()
 {
     try
     {
         if (Display != null)
         {
             Display.Dispose();
             Display = null;
         }
     }
     catch { }
 }