Menu

[Solved] Need Write Funtion Arduino Need Help N Input Function Soundalert Q37183282

Write your very own function that creates a sound (523 Hz) consisting of N shorts bursts (around 200 milli seconds) fallowed
need to write my own funtion on Arduino (need help with the N inputfunction “soundAlert”)
Tone function- Exam_Make up S int piezoPin -9: void setup () pǐnMode (9, OUTPUT) ; Serial.begin (9600); L2 void loop ) tone (Write your very own function that creates a sound (523 Hz) consisting of N shorts bursts (around 200 milli seconds) fallowed by one long pause (2 seconds). N is an input to the function and can be any integer, 1, 2, 3….) Name this function soundAlert. Tone function- Exam_Make up S int piezoPin -9: void setup () pǐnMode (9, OUTPUT) ; Serial.begin (9600); L2 void loop ) tone (piezoPin, 523, 100); delay (2000); Serial.printin (“Sound Alert!) Show transcribed image text Write your very own function that creates a sound (523 Hz) consisting of N shorts bursts (around 200 milli seconds) fallowed by one long pause (2 seconds). N is an input to the function and can be any integer, 1, 2, 3….) Name this function soundAlert.
Tone function- Exam_Make up S int piezoPin -9: void setup () pǐnMode (9, OUTPUT) ; Serial.begin (9600); L2 void loop ) tone (piezoPin, 523, 100); delay (2000); Serial.printin (“Sound Alert!)

Expert Answer


Answer to need to write my own funtion on Arduino (need help with the N input function “soundAlert”)… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *