配置多一个IO(PA1)口, 也就是通道1。
2.在void Adc_Config(void)函数里面添加:
ADC_RegularChannelConfig(ADC1, ADC_Channel_0, 1, ADC_SampleTime_239Cycles5 );
<span style="color: rgb(77, 77, 77); font-family: -apple-system, "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; font-variant-ligatures: no-common-ligatures; background-color: rgb(255, 255, 255);">先不指定ADC转换通道。</span>
|