Exemple #1
0
 /// <summary>
 /// update one bit of the output
 /// </summary>
 /// <param name="value"></param>
 /// <param name="pos"></param>
 private void UpdateOneBit(byte value, byte pos)
 {
     try
     {
         currentOutputStatus = ByteLib.SetBit(currentOutputStatus, pos, value);
         byte addr = GetAddress(true);
         CommObj.Send(new byte[] { addr, 9, currentOutputStatus }, 0);
     }
     catch
     {
     }
 }