Example #1
0
 /// <summary>Main method</summary>
 static Provider()
 {
     ProviderCollection.RegisterPWMPinMapper(_PWMMapper);
     ProviderCollection.RegisterADCPinMapper(_ADCMapper);
 }
Example #2
0
 /// <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);
 }