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 9f6de40 commit 5a5acb5Copy full SHA for 5a5acb5
devices/Adc128D818/Adc128D818.cs
@@ -395,7 +395,12 @@ private byte GetIndexForChannel(Channel channel)
395
else if (channel >= Channel.In4 && channel <= Channel.In6 && (_adcMode == Mode.Mode0 || _adcMode == Mode.Mode1))
396
{
397
// IN4, IN5, IN6 single-ended readings
398
- return (byte)((byte)channel - 4);
+ return (byte)channel;
399
+ }
400
+ else if (channel == Channel.In7 && _adcMode == Mode.Mode1)
401
+ {
402
+ // IN7 single-ended reading
403
404
}
405
else if (channel == Channel.Temperature && (_adcMode == Mode.Mode0 || _adcMode == Mode.Mode2 || _adcMode == Mode.Mode3))
406
0 commit comments