I am creating a laser tripwire for a school project, but I am having trouble uploading files to the arduino nano. I got the idea from this website. [
There are two separate files: lasertripwire.ino and pitches.h. I have successfully uploaded the pitches file individually but once I try to do both files there is an error. Arduino: 1.6.8 (Windows Vista), Board: "Arduino Nano, ATmega328"
C:\Users\Kevin\AppData\Local\Temp\untitled886503113.tmp\sketch_apr23b\lasertripwire.ino: In function 'void setup()':
lasertripwire:21: error: redefinition of 'void setup()'
void setup() {
^
lasertripwire:1: error: 'void setup()' previously defined here
//Laser tripwire sketch - @vmfoo
^
C:\Users\Kevin\AppData\Local\Temp\untitled886503113.tmp\sketch_apr23b\lasertripwire.ino: In function 'void loop()':
lasertripwire:28: error: redefinition of 'void loop()'
void loop() {
^
lasertripwire:6: error: 'void loop()' previously defined here
#include "pitches.h" //include the frequency definitions of the pitches
^
exit status 1
redefinition of 'void setup()'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I am new to this and need some help.](http://computers.tutsplus.com/tutorials/how-to-build-a-laser-tripwire-with-arduino--cms-21485)