给大家啰嗦一下我说的问题:
主函数:
int main(void)
{
UART_Init();
printf("LDR TEST\r\n");
mxchipInit();
GPIO_LED_Configuration();
GPIO_JOYSTICK_KEY_Configuration();
ADC1_CH1_DMA_Config();
ADC_SoftwareStartConv(ADC1);
while(1)
{
/* Printf message with AD value to serial port every 1 second */
printf("\r\n****************************************************************\r\n");
AD_value_1 = ADC_ConvertedValue[0];
printf("The current AD1 value = %d\r\n", ADC_ConvertedValue[0]);
GPIO_LED_Binky(AD_value_1/10);
}
}