Jump to content

Arduino code help.

SkywardKkalox

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
Share on other sites

Link to post
Share on other sites

Those variables haven't been declared in the scope, either you forgot to declare them or you have forgot to include the library of which they are declared in.

Link to comment
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
Share on other sites

Link to post
Share on other sites

pitches.h is the include file you're looking for, it's in the digital > toneMelody sample project.

1474412270.2748842

Link to comment
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

×