adafruit_rtttl

Play notes to a digialio pin using ring tone text transfer language (rtttl).

  • Author(s): Scott Shawcroft

adafruit_rtttl.play(pin, rtttl: str, octave: Optional[int] = None, duration: Optional[int] = None, tempo: Optional[int] = None) None[source]

Play notes to a digialio pin using ring tone text transfer language (rtttl). :param ~digitalio.DigitalInOut pin: the speaker pin :param str rtttl: string containing rtttl :param int octave: represents octave number (default 6 starts at middle c) :param int duration: length of notes (default 4 quarter note) :param int tempo: how fast (default 63 beats per minute)