Esempio n. 1
0
        private GenericConfiguration TestConfiguration()
        {
            var ports  = TestRaspberryPiPorts();
            var result = new RaspyberryPiConfiguration()
            {
                DeviceName        = "TesteRaspy",
                Ports             = ports,
                RaspyberryPiPorts = ports
            };

            return(result);
        }
Esempio n. 2
0
 public void SetRaspberryPiConfiguration(RaspyberryPiConfiguration raspyberryPiConfiguration)
 {
     RaspyPinManager.Instance.LoadConfiguration(raspyberryPiConfiguration.RaspyberryPiPorts);
 }
Esempio n. 3
0
 public async Task InitializeRaspberryPi(RaspyberryPiConfiguration raspyberryPiConfiguration)
 {
     var configuration = raspyberryPiConfiguration;
     await Task.Run(() => DeviceConfigurationService.Current.SetRaspberryPiConfiguration(configuration));
 }