diff --git a/src/machine/machine_nrf52xxx.go b/src/machine/machine_nrf52xxx.go index 2989e14d..c4605d58 100644 --- a/src/machine/machine_nrf52xxx.go +++ b/src/machine/machine_nrf52xxx.go @@ -24,7 +24,8 @@ func (a ADC) Configure(config ADCConfig) { // enabled. nrf.SAADC.ENABLE.Set(nrf.SAADC_ENABLE_ENABLE_Enabled << nrf.SAADC_ENABLE_ENABLE_Pos) - // Configure ADC. + // Use fixed resolution of 12 bits. + // TODO: is it useful for users to change this? nrf.SAADC.RESOLUTION.Set(nrf.SAADC_RESOLUTION_VAL_12bit) var configVal uint32 = nrf.SAADC_CH_CONFIG_RESP_Bypass<