public BuzzerController() { if (!Utilities.IsDesktopComputer()) { _buzzerHandler = new SolidStateRelayHandler(BrewProfileSettings.Instance.BuzzerGPIO); } }
public void Pump() { if (_ssrPumpHandler == null) { _ssrPumpHandler = new SolidStateRelayHandler(BrewProfileSettings.Instance.SSRPumpGPIO); } _ssrPumpHandler?.Switch(); }
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); }