public NewsfeedService(IWebClientService cookieWebClientService, ISettingsService settingsService, IOperatingSystemService operatingSystemService) { _cookieWebClientService = cookieWebClientService; _settingsService = settingsService; _operatingSystemService = operatingSystemService; _nextPageUrls = new Dictionary <NewsCategory, string>(); }
public SoftwareChannelPwm(IOperatingSystemService operatingSystemService, IGpioPort gpioPort, int pin) { this.gpioPort = gpioPort; this.pin = pin; ChangeFrequency(1000.0f); loopThread = operatingSystemService.CreateLoopThread <object>(Loop); }
private void InitAutumnBoxBasic(IOperatingSystemService operatingSystemService) { try { Logger.Info("killing other adb processes"); operatingSystemService.KillProcess("adb.exe"); Logger.Info("autumnbox-adb-server is starting"); BasicBooter.Use <Win32AdbManager>(); Logger.Info($"autumnbox-adb-server is started at {BasicBooter.ServerEndPoint}"); } catch (Exception e) { Logger.Warn("there's some error happened while starting autumnbox-adb-server", e); throw e; } }
public SoftwarePwm(IOperatingSystemService operatingSystemService, IGpioPort gpioPort) { this.gpioPort = gpioPort; this.operatingSystemService = operatingSystemService; }
public TabbedRootViewModel(IMvxNavigationService navigationService, ITabsInitService tabsInitService, IOperatingSystemService operatingSystemService) : base(navigationService, operatingSystemService) { _tabsInitService = tabsInitService; }
public SysfsLinuxGpioPort(IOperatingSystemService operatingSystemService) { this.operatingSystemService = operatingSystemService; softwarePwm = new SoftwarePwm(operatingSystemService, this); }
public static Pi2GoLiteRobot BuildPi2GoLite(IOperatingSystemService operatingSystemService, IGpioPort gpioPort) { return(new Pi2GoLiteRobot() { GpioPort = gpioPort, MotorLeft = new Motor(7, 8) { GpioPort = gpioPort }, MotorRight = new Motor(10, 9) { GpioPort = gpioPort }, LedFront = new Led(22) { GpioPort = gpioPort }, LedRear = new Led(23) { GpioPort = gpioPort }, IrLeft = new InfraredSensor(4) { GpioPort = gpioPort }, IrRight = new InfraredSensor(17) { GpioPort = gpioPort }, IrLeftLine = new InfraredSensor(18) { GpioPort = gpioPort }, IrRightLine = new InfraredSensor(27) { GpioPort = gpioPort }, Sonar = new Sonar(14) { GpioPort = gpioPort }, Switch = new Switch(11) { GpioPort = gpioPort }, ServoPan = new Servo(25) { GpioPort = gpioPort }, ServoTilt = new Servo(24) { GpioPort = gpioPort }, //VideoStreaming = null }); }