adafruit_rtttl
¶
Play notes to a digialio pin using ring tone text transfer language (rtttl).
- Author(s): Scott Shawcroft
-
adafruit_rtttl.
play
(pin, rtttl, octave=None, duration=None, tempo=None)[source]¶ Play notes to a digialio pin using ring tone text transfer language (rtttl). :param ~digitalio.DigitalInOut pin: the speaker pin :param 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)