{"id":15023492,"url":"https://github.com/adafruit/adafruit_circuitpython_rtttl","last_synced_at":"2025-06-25T03:36:03.197Z","repository":{"id":20570076,"uuid":"90297729","full_name":"adafruit/Adafruit_CircuitPython_RTTTL","owner":"adafruit","description":"Play RTTTL tunes in CircuitPython","archived":false,"fork":false,"pushed_at":"2025-01-16T19:58:51.000Z","size":132,"stargazers_count":4,"open_issues_count":1,"forks_count":12,"subscribers_count":20,"default_branch":"main","last_synced_at":"2025-01-28T22:37:36.769Z","etag":null,"topics":["audio","circuitpython","hacktoberfest","music","ringtone","rtttl","sound"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adafruit.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-04T18:43:13.000Z","updated_at":"2025-01-16T15:10:47.000Z","dependencies_parsed_at":"2023-02-11T23:46:03.873Z","dependency_job_id":"bde7ddca-b030-48a1-bf41-0aa8e9b19f8c","html_url":"https://github.com/adafruit/Adafruit_CircuitPython_RTTTL","commit_stats":{"total_commits":108,"total_committers":19,"mean_commits":5.684210526315789,"dds":0.8240740740740741,"last_synced_commit":"5d49c2515a4c139ce485eaf5d55627f6873783a9"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adafruit%2FAdafruit_CircuitPython_RTTTL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adafruit%2FAdafruit_CircuitPython_RTTTL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adafruit%2FAdafruit_CircuitPython_RTTTL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adafruit%2FAdafruit_CircuitPython_RTTTL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adafruit","download_url":"https://codeload.github.com/adafruit/Adafruit_CircuitPython_RTTTL/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237181578,"owners_count":19268057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","circuitpython","hacktoberfest","music","ringtone","rtttl","sound"],"created_at":"2024-09-24T19:59:07.529Z","updated_at":"2025-06-25T03:36:03.184Z","avatar_url":"https://github.com/adafruit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nIntroduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-rtttl/badge/?version=latest\n    :target: https://docs.circuitpython.org/projects/rtttl/en/latest/\n    :alt: Documentation Status\n\n.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg\n    :target: https://adafru.it/discord\n    :alt: Discord\n\n.. image:: https://github.com/adafruit/Adafruit_CircuitPython_RTTTL/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_RTTTL/actions/\n    :alt: Build Status\n\n.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\n    :target: https://github.com/astral-sh/ruff\n    :alt: Code Style: Ruff\n\nThis plays `RTTTL \u003chttps://en.wikipedia.org/wiki/Ring_Tone_Transfer_Language\u003e`_ melodies.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython \u003chttps://github.com/adafruit/circuitpython\u003e`_\n* `Adafruit CircuitPython Waveform \u003chttps://github.com/tannewt/Adafruit_CircuitPython_Waveform\u003e`_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle \u003chttps://github.com/adafruit/Adafruit_CircuitPython_Bundle\u003e`_.\n\nInstalling from PyPI\n====================\n\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI \u003chttps://pypi.org/project/adafruit-circuitpython-rtttl/\u003e`_. To install for current user:\n\n.. code-block:: shell\n\n    pip3 install adafruit-circuitpython-rtttl\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n    sudo pip3 install adafruit-circuitpython-rtttl\n\nTo install in a virtual environment in your current project:\n\n.. code-block:: shell\n\n    mkdir project-name \u0026\u0026 cd project-name\n    python3 -m venv .venv\n    source .venv/bin/activate\n    pip3 install adafruit-circuitpython-rtttl\n\nUsage Example\n=============\n\nThis plays Frosty the Snowman:\n\n.. code-block:: python\n\n    import board\n    import adafruit_rtttl\n\n    adafruit_rtttl.play(board.A0, \"Snowman:d=8,o=5,b=200:2g,4e.,f,4g,2c6,b,c6,4d6,4c6,4b,a,2g.,b,c6,4d6,4c6,4b,a,a,g,4c6,4e.,g,a,4g,4f,4e,4d,2c.,4c,4a,4a,4c6,4c6,4b,4a,4g,4e,4f,4a,4g,4f,2e.,4e,4d,4d,4g,4g,4b,4b,4d6,d6,b,4d6,4c6,4b,4a,4g,4p,2g\")\n\nCPX Usage Example\n=================\n\nThis plays Frosty the Snowman on a Circuit Playground Express (we must enable onboard speaker):\n\n.. code-block:: python\n\n    import board\n    from digitalio import DigitalInOut, Direction\n    import adafruit_rtttl\n    spkrenable = DigitalInOut(board.SPEAKER_ENABLE)\n    spkrenable.direction = Direction.OUTPUT\n    spkrenable.value = True\n\n    adafruit_rtttl.play(board.A0, \"Snowman:d=8,o=5,b=200:2g,4e.,f,4g,2c6,b,c6,4d6,4c6,4b,a,2g.,b,c6,4d6,4c6,4b,a,a,g,4c6,4e.,g,a,4g,4f,4e,4d,2c.,4c,4a,4a,4c6,4c6,4b,4a,4g,4e,4f,4a,4g,4f,2e.,4e,4d,4d,4g,4g,4b,4b,4d6,d6,b,4d6,4c6,4b,4a,4g,4p,2g\")\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs \u003chttps://docs.circuitpython.org/projects/rtttl/en/latest/\u003e`_.\n\nFor information on building library documentation, please check out `this guide \u003chttps://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1\u003e`_.\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n\u003chttps://github.com/adafruit/Adafruit_CircuitPython_rtttl/blob/main/CODE_OF_CONDUCT.md\u003e`_\nbefore contributing to help this project stay welcoming.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadafruit%2Fadafruit_circuitpython_rtttl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadafruit%2Fadafruit_circuitpython_rtttl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadafruit%2Fadafruit_circuitpython_rtttl/lists"}