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.
9 years, 4 months ago.
AnalogIn pin number?
Dear I have used LPC800max . There , in function of "analogin" , always Pin number error occurs. This is from library For example, "A0","AIN0", ... are not correct.
How I do?
Best regards
1 Answer
9 years, 4 months ago.
Hi Matsuda-san,
You can use following example code about analog input using the I2C expander chip on the LPC800-MAX board.
https://developer.mbed.org/users/embeddedartists/notebook/lpc812-max-experiment_analog-input/ https://developer.mbed.org/users/embeddedartists/code/lpc812_exp_solution_analog-in/
Analog pin names are defined as A0, A1... in the PCF8591 class.
Thank you for your answer. But, under trying , next problem had occurred. Using your file, I could do compile it. But, I had not known PC display. So, I installed "Tera term". But, I can not display " Hellow...." Win Config OK, Port is OK(Com9), . Your bin file is copyed ,drop into Mbed, and reset. But no display on screen./Best regards
posted by 22 Sep 2015Hi Matsuda-san,
Did you install serial driver for Windows?
https://developer.mbed.org/handbook/Windows-serial-configuration
posted by 23 Sep 2015