{ "info": { "author": "Adafruit Industries", "author_email": "circuitpython@adafruit.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries", "Topic :: System :: Hardware" ], "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-rtttl/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/rtttl/en/latest/\n :alt: Documentation Status\n\n.. image :: https://img.shields.io/discord/327254708534116352.svg\n :target: https://discord.gg/nBQh6qu\n :alt: Discord\n\n.. image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_RTTTL.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_RTTTL\n :alt: Build Status\n\nThis plays `RTTTL `_ melodies.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython `_\n* `Adafruit CircuitPython Waveform `_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle `_.\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\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n`_\nbefore contributing to help this project stay welcoming.\n\nBuilding locally\n================\n\nTo build this library locally you'll need to install the\n`circuitpython-build-tools `_ package.\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install circuitpython-build-tools\n\nOnce installed, make sure you are in the virtual environment:\n\n.. code-block:: shell\n\n source .env/bin/activate\n\nThen run the build:\n\n.. code-block:: shell\n\n circuitpython-build-bundles --filename_prefix adafruit-circuitpython-rtttl --library_location .\n\nSphinx documentation\n-----------------------\n\nSphinx is used to build the documentation based on rST files and comments in the code. First,\ninstall dependencies (feel free to reuse the virtual environment from above):\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install Sphinx sphinx-rtd-theme\n\nNow, once you have the virtual environment activated:\n\n.. code-block:: shell\n\n cd docs\n sphinx-build -E -W -b html . _build/html\n\nThis will output the documentation to ``docs/_build/html``. Open the index.html in your browser to\nview them. It will also (due to -W) error out on any warning like Travis will. This is a good way to\nlocally verify it will pass.", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/adafruit/Adafruit_CircuitPython_DRV2605", "keywords": "adafruit rtttl tones melodies hardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-rtttl", "package_url": "https://pypi.org/project/adafruit-circuitpython-rtttl/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-rtttl/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_DRV2605" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-rtttl/2.3.0/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library for playing RTTTL melodies.", "version": "2.3.0" }, "last_serial": 5838313, "releases": { "2.2.0": [ { "comment_text": "", "digests": { "md5": "b12028acafdf28a52cb9245accd8646c", "sha256": "4819538a114cec5ca42348aacc3a0d70d84dc0c4dc278fe94052735e6c9fff6c" }, "downloads": -1, "filename": "adafruit-circuitpython-rtttl-2.2.0.tar.gz", "has_sig": false, "md5_digest": "b12028acafdf28a52cb9245accd8646c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20675, "upload_time": "2018-08-09T16:36:21", "url": "https://files.pythonhosted.org/packages/d5/6c/31116e29e46f6118a9d3132a6bbe1c62ca49e8c86009e2d54b1e2c6e26cd/adafruit-circuitpython-rtttl-2.2.0.tar.gz" } ], "2.2.1": [ { "comment_text": "", "digests": { "md5": "8065378f148f1d45ec15f044187ad657", "sha256": "2086301581a7330318d9a4453ad72abd839a7396a20c246491145dcbeb56b719" }, "downloads": -1, "filename": "adafruit-circuitpython-rtttl-2.2.1.tar.gz", "has_sig": false, "md5_digest": "8065378f148f1d45ec15f044187ad657", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20893, "upload_time": "2018-11-11T20:38:54", "url": "https://files.pythonhosted.org/packages/0c/2b/b2eb9341ac1cb9d719c0a267eef4c04ef908d91b2e131eb88e0c79f4dbcf/adafruit-circuitpython-rtttl-2.2.1.tar.gz" } ], "2.2.2": [ { "comment_text": "", "digests": { "md5": "331a3610900652c42821690a31997e5a", "sha256": "108910e1c5174b1546d177e9f0ca24bbc471fd9a2682a9e8d690a4f0f085bf18" }, "downloads": -1, "filename": "adafruit-circuitpython-rtttl-2.2.2.tar.gz", "has_sig": false, "md5_digest": "331a3610900652c42821690a31997e5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20275, "upload_time": "2019-01-15T03:32:57", "url": "https://files.pythonhosted.org/packages/d9/d2/dd6088b4a90154475418585aa5ae402bde35259ca358e16c0630bb4e8475/adafruit-circuitpython-rtttl-2.2.2.tar.gz" } ], "2.3.0": [ { "comment_text": "", "digests": { "md5": "8ac040bd50d78b25ea6d6ee6ca652299", "sha256": "e24ffe355887f54386559e298da285db87507aebe22e2e5757a04a8a85015f50" }, "downloads": -1, "filename": "adafruit-circuitpython-rtttl-2.3.0.tar.gz", "has_sig": false, "md5_digest": "8ac040bd50d78b25ea6d6ee6ca652299", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20290, "upload_time": "2019-09-16T21:36:29", "url": "https://files.pythonhosted.org/packages/79/70/d74ea61d6e835b65b1b9d514c6baca8a32ace04768af483f7fe04d31694a/adafruit-circuitpython-rtttl-2.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8ac040bd50d78b25ea6d6ee6ca652299", "sha256": "e24ffe355887f54386559e298da285db87507aebe22e2e5757a04a8a85015f50" }, "downloads": -1, "filename": "adafruit-circuitpython-rtttl-2.3.0.tar.gz", "has_sig": false, "md5_digest": "8ac040bd50d78b25ea6d6ee6ca652299", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20290, "upload_time": "2019-09-16T21:36:29", "url": "https://files.pythonhosted.org/packages/79/70/d74ea61d6e835b65b1b9d514c6baca8a32ace04768af483f7fe04d31694a/adafruit-circuitpython-rtttl-2.3.0.tar.gz" } ] }