What is the purpose of the D1 diode? : r/AskElectronics

What is the purpose of the D1 diode? : r/AskElectronics