Example #1
0
    public static void Main()
    {
        string[] LED     = new string[] { "[]", "[]", "[]", "[]", "[]", "[]", "[]", "[]", "[]", "[]", };
        string[] nameLED = new string[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", };

        IHomework05 led = new HW05();

        led.DisplayLEDOnScreen(LED);
        led.DisplaynameLED(nameLED);
        led.LEDon();
    }
Example #2
0
        public static void Main(string[] args)
        {
            var xxx = new HW05();

            xxx.setLED();
            var input = "";

            while (true)
            {
                var disPlayLED = xxx.DisplayLEDOnScreen(input);
                Console.WriteLine(disPlayLED);
                Console.Write("Please choose LED to turn On/Off: ");
                input = Console.ReadLine();
                if (input == "stop" || input == string.Empty)
                {
                    break;
                }
            }
        }