static OutputDevices() { #if DEBUG // Load emulated input devices var deviceContainer = Type.GetType("RmEmulator.EmulatedDevices, RmEmulator"); if (deviceContainer != null) { deviceContainer.ReadStaticField("Display", out Display); return; } #endif // Load hardware output devices Display = new HardwareDisplayDriver("/dev/fb0"); }
public DisplayView(IHistory <double> temperatureHistory, IDisplayDriver display, DisplayViewModel vm) { this.temperatureHistory = temperatureHistory; this.display = display; var delay = TimeSpan.FromMilliseconds(1000); subscription = Observable.CombineLatest(vm.SetTemperature, vm.CurrentTemperature.Select(d => d), vm.PlottingTimeSpan, vm.PlottingBand, vm.IpAdress, CreatePlotData) .Buffer(delay) .Subscribe(plotData => { if (plotData.Any()) { Plot(plotData.Last()); } }); //.Subscribe(pd => Plot(pd)); }
public DummyGame(IDisplayDriver display, IInputDriver input) { myDisplayDriver = display; myInputDriver = input; myInputDriver.InputReceived += OnInputReceived; }
public Widget(IDisplayDriver d, string n) { displayDriver = d; name = n; }
public void DoDraw() { IDisplayDriver driver = _factory.GetDisplayDriver(); driver.Draw(); }