public MainPage() { this.InitializeComponent(); // Create a new SpeechSynthesizer instance for later use. synthesizer = new SpeechSynthesizer(); // Initialize the ADC chip for use adcController = (await AdcController.GetControllersAsync(AdcMcp3008Provider.GetAdcProvider()))[0]; LowPotAdcChannel = adcController.OpenChannel(LowPotentiometerADCChannel); HighPotAdcChannel = adcController.OpenChannel(HighPotentiometerADCChannel); CdsAdcChannel = adcController.OpenChannel(CDSADCChannel); }
private async Task Init() { controller = (await AdcController.GetControllersAsync(AdcMcp3008Provider.GetAdcProvider()))[0]; controller.ChannelMode = mode; }