mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-24 22:39:04 +00:00
nrf: don't set PSELN, it's ignored in single ended mode anyway
We use single ended mode, so according to the datasheet PSELN is ignored.
This commit is contained in:
committed by
Ron Evans
parent
5c3363bf25
commit
7863bdb484
@@ -141,7 +141,6 @@ func (a *ADC) Get() uint16 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set pin to read.
|
// Set pin to read.
|
||||||
nrf.SAADC.CH[0].PSELN.Set(pwmPin)
|
|
||||||
nrf.SAADC.CH[0].PSELP.Set(pwmPin)
|
nrf.SAADC.CH[0].PSELP.Set(pwmPin)
|
||||||
|
|
||||||
// Destination for sample result.
|
// Destination for sample result.
|
||||||
|
|||||||
Reference in New Issue
Block a user