Ejemplo n.º 1
0
 static void RelayTest()
 {
     //LightRelay LR = new LightRelay((Cpu.Pin)FEZ_Pin.Digital.IO14);
     LightRelay LR = new LightRelay((Cpu.Pin)FEZ_Pin.Digital.IO44);
     while (true)
     {
         if (LR.IsTurnedOn())
             LR.TurnOff();
         else
             LR.TurnOn();
         Thread.Sleep(2000);
     }
 }
Ejemplo n.º 2
0
        static void ControllerTest()
        {
            LightRelay LR = new LightRelay((Cpu.Pin)FEZ_Pin.Digital.IO44);

            Config config = new Config();

            TestSystemServices system = new TestSystemServices();

            system.SetLocalTime(config.StartingDateTime);

            Controller lc = new Controller(config, system, LR);
            lc.Control();
        }
Ejemplo n.º 3
0
        static void StartController()
        {
            FEZ_Shields.KeypadLCD.Initialize();

            LightRelay LR = new LightRelay((Cpu.Pin)FEZ_Pin.Digital.IO44);

            Config config = new Config();

            Setup_Lcd_2x16.DoSetup(config);

            DotNetSystemServices system = new DotNetSystemServices();

            system.SetLocalTime(config.StartingDateTime);

            Controller lc = new Controller(config, system, LR);

            Monitor_Lcd_2x16.DoMonitor(lc, config, system);

            lc.Control();
        }