Exemple #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ArduinoSerialPort m_arduino = new ArduinoSerialPort();

            Application.Run(new MainForm(m_arduino));
        }
Exemple #2
0
        public MainForm(ArduinoSerialPort m_arduinoIn)
        {
            m_arduino = m_arduinoIn;
            InitializeComponent();

            updateDataThread = new Thread(UpdateData);
            m_continue       = true;
            updateDataThread.Start();
        }