Well you can use the structure of your programm and rewrite it in in C(++) using arduino syntax. Most of it is really easy to learn (basic funktions at least). Just read one of the tutorial available online.
analogRead() / analogWrite()
digitalRead() / digitalWrite()
delay() (is in ms) and pinMode()
If you learn what these to you should already be able to rewrite most of your program imo.