/// <summary> /// Play With PWM Channel. /// </summary> /// <param name="rtttl">Ring Tone Transfer Language.</param> /// <param name="pwmChannel">PWM channel.</param> public static void PlayWithPwmChannel(this Rtttl rtttl, PwmChannel pwmChannel) { rtttl.Play(new PwmChannelPlayer(pwmChannel)); }
public static void PlayWithConsoleBeep(this Rtttl rtttl) { rtttl.Play(new ConsoleBeepPlayer()); }
/// <summary> /// Play With PWM Channel. /// </summary> /// <param name="rtttl">Ring Tone Transfer Language.</param> /// <param name="chip">The PWM chip number.</param> /// <param name="channel">The PWM channel number.</param> public static void PlayWithPwmChannel(this Rtttl rtttl, int chip, int channel) { rtttl.Play(new PwmChannelPlayer(PwmChannel.Create(chip, channel))); }