I have an UNO SMD, and need to add just a few more digital IO. If I can get the source code (and modify it), I can reprogram the device with an ATMEL-ICE programmer.
I have never used the Arduino environment - I develop in Atmel Studio (currently 7, but could go earlier if necessary). However, I only know enough to be dangerous; I am not a programmer by trade.
I am looking for the source code currently in the ATEMGA8U2. I would like to make a few minor mods (to use the four pins on JP2 and possibly the three on ICSP1), but leave the USB functionality [mostly] intact. Where is the best place to find this code?
I found some examples in GitHub - the Arduino-usbserial project in the LUFA repository, but am not sure if these will work. I am not entirely sure how to build the project using the makefile from within Atmel Studio (short of manually making a project, adding all dependencies, and tweaking command line options manually to do what the makefile is doing). Is there a better way?