Jump to content

Hello guys i'm working on a project for school using arduino, that's what we are learning throught this semester, but i can't get the code right!

The code was posted on this link http://kokoraskostas.blogspot.gr/p/its-old-rf-rc-toy-car-that-i-converted.html and everytime i try to verify the code i get this error  http://puu.sh/gXH2m/e5de4049f2.png can you help me? We are using the Arduino UNO with the Motor shield.

Link to comment
https://linustechtips.com/topic/339409-arduino-code-help/
Share on other sites

Link to post
Share on other sites

Each note needs to be initialized at the proper frequencies prior to assigning them to each value in the array.

 

int NOTE_F4 = 440;

 

Or something like that for each note.

 

Everything in the preprocessor directives don't seem to have anything relevant to the frequency of each note, so you'll either have to write your own file to reference or just do it in the source.

Link to comment
https://linustechtips.com/topic/339409-arduino-code-help/#findComment-4632773
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×