If you search in the upper right corner for visual studio you get some discussions how to use visual studio with the Arduino.
Further, the arduino.cc site has a tutorial section and a reference section with many examples including some that looks like your project goal.