示例#1
0
        public SocketConnection(Sketch sketch, int port = 4242)
        {
            this.sketch = sketch;
            this.port = port;

            sketch.SerialReceived += OnSerialReceived;
            listener = new TcpListener(IPAddress.Any, port);
            listener.Start();
        }
示例#2
0
文件: Pin.cs 项目: RichoM/Uzi
        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();
        }
示例#3
0
        public SerialConsole(Sketch sketch)
        {
            this.sketch = sketch;

            InitializeComponent();
        }