Use P1.0 to output 1KHz and 500Hz audio signals to drive the speaker to make an alarm signal. It requires 1KH z signal to sound 100ms, 500Hz signal to sound 200ms, alternately, P1.7 is connected to a switch for control, when the switch is closed, the alarm signal is activated. When the switch disconnects the alarm signal to stop, the program is programmed.
(1. Connect the P1.0 port in the “Microcontroller System†area to the SPK IN port in the “Audio Amplifier Module†area;
(2. Connect a 8 ohm or 16 ohm speaker to the SPK OUT port in the “Audio Amplifier Module†area;
(3. Wire the P1.7/RD port in the "Microcontroller System" area to the K1 port in the "4-way toggle switch" area.

The 45W MagSafe Power Adapter has a magnetic DC connector, so if someone trips on it, the power cord disconnects harmlessly, keeping your MacBook Air safe. It also helps prevent the cable from fraying or weakening over time. Additionally, the magnetic DC helps guide the plug into the system for a quick and safe connection.
45W Macbook charger air,macbook 45watt charger,45W Macbook pro charger
Shenzhen Waweis Technology Co., Ltd. , https://www.huaweishiadapter.com