Exemplo n.º 1
0
 public static void MomentaryRelay_RESET( )  // Relay 4
 {
     System.Threading.Thread.Sleep(STRS232.KEY_WAIT_MILLISECONDS);
     STRS232.SetRelayBits(0x10);
     System.Threading.Thread.Sleep(STRS232.KEY_PRESS_MILLISECONDS);
     STRS232.SetRelayBits(0);
 }
Exemplo n.º 2
0
        public static void Test( )
        {
            int i = 0;
            int n = 0;

            n = 256;
            for (i = 0; i < n; i++)
            {
                STRS232.SetRelayBits((int)(i & 0xff));
                //SetRelay( (i%8), (int)((i/13)&0x1) );
                System.Threading.Thread.Sleep(1);
            }
            STRS232.SetRelayBits(0);
        }