We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 280e4df commit bc8f812Copy full SHA for bc8f812
nanoFramework.M5Core2/M5Core2.cs
@@ -1,4 +1,4 @@
1
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
2
// The .NET Foundation licenses this file to you under the MIT license.
3
4
using Iot.Device.Axp192;
@@ -333,6 +333,12 @@ public static AdcChannel GetAdcGpio(int gpioNumber)
333
334
switch (gpioNumber)
335
{
336
+ case 35:
337
+ Configuration.SetPinFunction(11, DeviceFunction.ADC1_CH7);
338
+ return _adc.OpenChannel(7);
339
+ case 36:
340
+ Configuration.SetPinFunction(5, DeviceFunction.ADC1_CH0);
341
+ return _adc.OpenChannel(0);
342
case 32:
343
Configuration.SetPinFunction(32, DeviceFunction.ADC1_CH4);
344
return _adc.OpenChannel(4);
0 commit comments