Example #1
0
        private static void RelayTimerTick(object state)
        {
            // Set Relay 1's state
            relayController.SetRelay(1, !relayController.ReadRelayState(1));

            // Set Relay 2's state
            relayController.SetRelay(2, !relayController.ReadRelayState(2));
        }