With the info you give it sounds like you have the software and the hardware and just need to marry the two..?
- Port your code to C or C++ if its not already.
- Replace interactions with functions calls to the arduino library
Note that there are also a lot of 3rd party libraries to choose from.
- Compile, upload and run.