MBED Board Application with Offline compiler (gcc-arm-none-eabi)

16 Dec 2013

Hi all,

I'm working on the mbed application with the offline compiler (gcc-arm-none-eabi) and it works well. I'm using a library (RFLPC : hauspie.github.io/rflpc/doc/index.html) to do some basic stuff like get the active pin of the joystick, changing mbed's led state or board's led color ...

But now i would like to go a little further. I would like to work with potentiometer / temperature sensor and the LCD.

The only problem is that I have to implement an ADC library and I have no idea how. Maybe it's not about ADC library, whatever I have no clue.

any idea ?

Thanks !

16 Dec 2013

Use the mbed library? Which is kinda the point of mbed ;).

You should be able to just export the mbed library from a new project in the online compiler, and then you simply use AnalogIn.

16 Dec 2013

That's the point, I can't use the mbed library and I have to find a solution using the small library RFLPC. I'm now reading a chapter about Analog to digital converter (http://www.nxp.com/documents/user_manual/UM10360.pdf) But it's a bit complicate, I don't understand how to work with it to get different value from both potentiometers ...

16 Dec 2013

And why can't you use the mbed library?

There are also other libraries out there for LPCs. And aditionally you can have a look at the mbeds source code for the AnalogIn: http://mbed.org/users/mbed_official/code/mbed-src/file/ef93cc6bbf65/targets/hal/TARGET_NXP/TARGET_LPC176X/analogin_api.c