/// <summary>Main method</summary> static Provider() { ProviderCollection.RegisterPWMPinMapper(_PWMMapper); ProviderCollection.RegisterADCPinMapper(_ADCMapper); }
/// <summary> /// Defines a speaker /// </summary> /// <param name="PwmPort">The PWM port the speaker is connected to</param> public Speaker(Cpu.Pin PwmPort) { this._Speaker = ProviderCollection.GetPWMByPin(PwmPort); }