Problem With ADC C code | Cypress Semiconductor
Problem With ADC C code
Hello, I am running a very basic application of varying input voltage into an ADC and changing the LED color based on the voltage range. I keep receiving an error about not being able to define my variable adcSample (which is the result from the ADC).
/* Initialize ADC. Conversion is not enabled yet. */
/* Start ADC conversion. */
adcSample = ADC_GetResult16(uint32 0)