Project,

i am trying to create a project that will sound a buzzer when a button is pressed and the accelerometer is reading a certain value, this is what i have so far(attached) but its incomplete and not working, does anyone know why? (I am a very amateur coder so its probably awful, this project idea is more difficult than I expected) Thanks!

Final_Project_Code.ino (2.41 KB)

Please post your code, in code tags.

A: You define a constant 'highspeed' that you don't use and give it no value.

B: You are playing 32 notes from the 15-note arrays.

C: How have you got the button wired?

D: What values are being displayed for X: and Y:?