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);
        }
Beispiel #2
0
 public ButtonController(IPIManager pIManager)
 {
     _piManager = pIManager;
 }
Beispiel #3
0
 public OrangeTimerHostedService(IPIManager pIManager)
 {
     _piManager = pIManager;
 }
Beispiel #4
0
 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;
 }