コード例 #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);
        }