I don't really see what i did wrong, But this is the error i get when i try to compile/upload something.
In function 'void loop()':
error: invalid conversion from 'int' to 'const uint8_t*'
The code is:
int spkpin = 9;//the speaker (digital PWM)pin is 9
int note = 440;
int singlebyte = 0;
note = analogRead(1);
singlebyte = map(note,0,1023,0,255);
tone1.play(note);//plays the current note
And something in this line
Is causing it to go kaput.
I don't see what could possibly be wrong here. :o