Exemplo n.º 1
0
        private void btnScan_Click(object sender, EventArgs e)
        {
            frmScanI2C frm = new frmScanI2C(mBridge, (byte)numPort.Value);

            frm.SelectedAddr = ctlI2CAddress1.Addr7;
            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                if (frm.SelectedAddr != -1)
                {
                    ctlI2CAddress1.Addr7 = (byte)frm.SelectedAddr;
                }
            }
        }
Exemplo n.º 2
0
 private void btnScan_Click(object sender, EventArgs e)
 {
     frmScanI2C frm = new frmScanI2C(mBridge, (byte)numPort.Value );
     frm.SelectedAddr = ctlI2CAddress1.Addr7;
     if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         if (frm.SelectedAddr != -1)
         {
             ctlI2CAddress1.Addr7 = (byte)frm.SelectedAddr;
         }
     }
 }