7 years, 3 months ago.

analog in using custom PCB

I have an LPC1768 on a custom PCB. When I try to read the analog pin the code just locks up. I declare the pin like this

AnalogIn BeaconFR(P0_24);

then in main I read it like this float p= BeaconFR;

I also tried int i = BeaconFR.read_u16();

Both lock up. What am I missing?

Be the first to answer this question.