예제 #1
0
 public BuzzerController()
 {
     if (!Utilities.IsDesktopComputer())
     {
         _buzzerHandler = new SolidStateRelayHandler(BrewProfileSettings.Instance.BuzzerGPIO);
     }
 }
예제 #2
0
        public void Pump()
        {
            if (_ssrPumpHandler == null)
            {
                _ssrPumpHandler = new SolidStateRelayHandler(BrewProfileSettings.Instance.SSRPumpGPIO);
            }

            _ssrPumpHandler?.Switch();
        }
예제 #3
0
        public void Start()
        {
            //Create the cancellation token to be used for tasks
            _tokenSource = new CancellationTokenSource();
            _cancelToken = _tokenSource.Token;

            _ssrHeaterHandler = new SolidStateRelayHandler(BrewProfileSettings.Instance.SSRHeaterGPIO);

            TemperatureController.Instance.Init();

            IsRunning = true;

            Task.Run(PIDTask);
            Task.Run(StateSaverTask);
            Task.Run(StepTask);
            Task.Run(InformationTask);
        }