Problem solved, thanks
change
#define buzzerPin = 10
into
#define buzzerPin 10
The way you wrote this means that in your setup code
pinMode(buzzerPin, OUTPUT); // set pin for buzzer output
will be modified to look like this and sent like this to the compiler
pinMode(= 10, OUTPUT); // set pin for buzzer output
which does not make sense
same happens in the loop(). if you fix the #define, then at least this bug will be gone...
Thank you so much for the help, I will try what you tech me, in the mean time I was solved using this:
const int buzzerPin = 10;
Problem solved, thanks so much
Sure that works too - might use 2 bytes of memory while define does not.
You probably meant const byte buzzerPin = 10;