public SocketConnection(Sketch sketch, int port = 4242) { this.sketch = sketch; this.port = port; sketch.SerialReceived += OnSerialReceived; listener = new TcpListener(IPAddress.Any, port); listener.Start(); }
public Pin(int number, Sketch sketch) { this.number = number; this.sketch = sketch; label = string.Format("{0}{1}", IsDigital ? "D" : "A", IsDigital ? number : number - 14); InitializeComponent(); }
public SerialConsole(Sketch sketch) { this.sketch = sketch; InitializeComponent(); }