Exemple #1
0
        void Initialize()
        {
            Config.SetupLcd(display_HD44780);
            Config.SetupThemocouple(thermocouple);
            Config.Initialize();
            BlinkLed(); //boot completed

            StartTime = CurrentTime;
            GrillController.Initialize();

            BlinkLed(); //initialize completed
        }
Exemple #2
0
        void timer_Tick(GT.Timer timer)
        {
            if (!_hasWelcomeShown)
            {
                _hasWelcomeShown = true;
                Menu.SetState(MenuState.Welcome);
            }

            //if (!speedtestdone)
            //{
            //    speedtestdone = true;
            //    Menu.SpeedTest();
            //    Menu.SetState(MenuState.ShowTemps);
            //}

            Menu.DoWork();
            if (GrillController.DoWork())
            {
                Menu.UpdateScreen();
            }
        }