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.
2 parents df484e7 + f861b37 commit 5c3ce0aCopy full SHA for 5c3ce0a
targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/analogin_api.c
@@ -67,7 +67,7 @@ uint16_t analogin_read_u16(analogin_t *obj)
67
68
// initialization by assigment because IAR dosen't support variable initializer in declaration statement.
69
adc_channel.config.config.resolution = NRF_ADC_CONFIG_RES_10BIT;
70
- adc_channel.config.config.input = NRF_ADC_CONFIG_SCALING_INPUT_FULL_SCALE;
+ adc_channel.config.config.input = NRF_ADC_CONFIG_SCALING_INPUT_ONE_THIRD;
71
adc_channel.config.config.reference = NRF_ADC_CONFIG_REF_VBG;
72
adc_channel.config.config.ain = (obj->adc_pin);
73
adc_channel.p_next = NULL;
0 commit comments