Hello, i bought this arduino peripheral to use as an alarm. however, i have never worked with any audio peripehrals, so i do not have an understanding of what they require to work, in terms of the signal line. another problem is that i am coding my arduino in C and C++, so i am not familiar with the arduino coding structure. Here is the datasheet and a picture of the peripheral (in the datasheet). if anyone can help me understand the basics that'll be great.
Take a look at the examples in the Arduino IDE to see the structure. Basically you must have a setup() function and a loop() function. When the IDE builds the sketch it creates a hidden main() function that initialises the Arduino hardware, calls setup() once then calls loop() repeatedly
If you put a main() function in your sketch then it is used instead of the Arduino, one but I suggest that you do not do this