Content originally posted in LPCWare by rocketdawg on Fri Jun 13 09:15:27 MST 2014
so there is an Arduino library. I looked at that code.
Seems fine. You should be able to create a LPCOpen c++ project and use the library c++ code directly.
there will be some things you have to modify, such as all the Arduino library stuff like, bit_set() and analogRead()
perhaps get the Aurduino library source code and modify it to talk to LPC hardware.
Aurduino has been ported to some Cortex M3 parts.