public ButtonTimerHostedService(IPIManager Pimanager) { _piManager = Pimanager; button = new Button(_piManager.grovePi, GrovePort.DigitalPin7); buzzer = new Buzzer(_piManager.grovePi, GrovePort.DigitalPin6); buzzer.Value = 10; lightSensor = new LightSensor(_piManager.grovePi, GrovePort.AnalogPin0); soundSesnor = new SoundSensor(_piManager.grovePi, GrovePort.AnalogPin1); ultrasonicSensor = new UltrasonicSensor(_piManager.grovePi, GrovePort.DigitalPin8); }
public ButtonController(IPIManager pIManager) { _piManager = pIManager; }
public OrangeTimerHostedService(IPIManager pIManager) { _piManager = pIManager; }
public LightsController(IPIManager pIManager, IGreenHostedService greenTimerHostedService, IOrangeTimerHostedService orangeTimerhostedService) { _piManager = pIManager; _greenTimerHostedService = greenTimerHostedService; _orangeTimerHostedService = orangeTimerhostedService; }
public GreenTimerHostedService(IPIManager pIManager) { _piManager = pIManager; }
public LedbarController(IPIManager pIManager) { _piManager = pIManager; }