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 17302ca commit 00904a9Copy full SHA for 00904a9
src/machine/machine_nrf52xxx.go
@@ -110,28 +110,20 @@ func (a ADC) Get() uint16 {
110
switch a.Pin {
111
case 2:
112
pwmPin = nrf.SAADC_CH_PSELP_PSELP_AnalogInput0
113
-
114
case 3:
115
pwmPin = nrf.SAADC_CH_PSELP_PSELP_AnalogInput1
116
117
case 4:
118
pwmPin = nrf.SAADC_CH_PSELP_PSELP_AnalogInput2
119
120
case 5:
121
pwmPin = nrf.SAADC_CH_PSELP_PSELP_AnalogInput3
122
123
case 28:
124
pwmPin = nrf.SAADC_CH_PSELP_PSELP_AnalogInput4
125
126
case 29:
127
pwmPin = nrf.SAADC_CH_PSELP_PSELP_AnalogInput5
128
129
case 30:
130
pwmPin = nrf.SAADC_CH_PSELP_PSELP_AnalogInput6
131
132
case 31:
133
pwmPin = nrf.SAADC_CH_PSELP_PSELP_AnalogInput7
134
135
default:
136
return 0
137
}
0 commit comments