11 years, 11 months ago.

I can not get AnalogIn to compile on FRDM-K64F

AnalogIn adc(ADC0_DP1) ; "Will not Compile"

AnalogIn adc(PTE22) ; "Does not Work"

Thank You

1 Answer

11 years, 11 months ago.

I assume it gives slightly different errors than that...

Are you using the latest mbed lib? Click on the mbed lib, then at the right side their might be an update button.

Accepted Answer

Thanks again. I went to github and searched for analogin.h. Found

  1. if defined(TARGET_K64F) AnalogIn in(A0) Used A0 as pin and compiled and executed okay. Now to find out what pin on the board is Analog in. Should be only a couple.
posted by Bob Levin 27 Apr 2014

Assigned to Bob Levin 11 years, 11 months ago.

This means that the question has been accepted and is being worked on.