Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 11 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?