Introduction - If you have any usage issues, please Google them yourself
Drive the speaker audio signal output of P1.0 1KHz and 500Hz, for the alarm signal, 1KHz signal ring 100ms, 500Hz signal ring 200ms, alternately, P1.7 take control of a switch, when the switch on the sound alarm signal, when switching off alarm signal to stop programs.