README.rst 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. `luma.core <https://github.com/rm-hull/luma.core>`__ **|**
  2. `luma.docs <https://github.com/rm-hull/luma.docs>`__ **|**
  3. `luma.emulator <https://github.com/rm-hull/luma.emulator>`__ **|**
  4. `luma.examples <https://github.com/rm-hull/luma.examples>`__ **|**
  5. `luma.lcd <https://github.com/rm-hull/luma.lcd>`__ **|**
  6. luma.led_matrix **|**
  7. `luma.oled <https://github.com/rm-hull/luma.oled>`__
  8. Luma.LED_Matrix
  9. ===============
  10. **Display drivers for MAX7219, WS2812, APA102**
  11. .. image:: https://github.com/rm-hull/luma.led_matrix/workflows/luma.led_matrix/badge.svg?branch=master
  12. :target: https://github.com/rm-hull/luma.led_matrix/actions?workflow=luma.led_matrix
  13. .. image:: https://coveralls.io/repos/github/rm-hull/luma.led_matrix/badge.svg?branch=master
  14. :target: https://coveralls.io/github/rm-hull/luma.led_matrix?branch=master
  15. .. image:: https://readthedocs.org/projects/luma-led_matrix/badge/?version=latest
  16. :target: http://luma-led-matrix.readthedocs.io/en/latest/?badge=latest
  17. .. image:: https://img.shields.io/pypi/pyversions/luma.led_matrix.svg
  18. :target: https://pypi.python.org/pypi/luma.led_matrix
  19. .. image:: https://img.shields.io/pypi/v/luma.led_matrix.svg
  20. :target: https://pypi.python.org/pypi/luma.led_matrix
  21. .. image:: https://img.shields.io/pypi/dm/luma.led_matrix
  22. :target: https://pypi.python.org/project/luma.led_matrix
  23. .. image:: https://img.shields.io/maintenance/yes/2021.svg?maxAge=2592000
  24. Python 3 library interfacing LED matrix displays with the MAX7219 driver (using
  25. SPI), WS2812 (NeoPixels, inc Pimoroni Unicorn pHat/Hat and Unicorn Hat HD) and
  26. APA102 (DotStar) on the Raspberry Pi and other Linux-based single board computers
  27. - it provides a `Pillow <https://pillow.readthedocs.io/>`_-compatible drawing
  28. canvas, and other functionality to support:
  29. * multiple cascaded devices
  30. * LED matrix, seven-segment and NeoPixel variants
  31. * scrolling/panning capability,
  32. * terminal-style printing,
  33. * state management,
  34. * dithering to monochrome,
  35. * pygame emulator,
  36. * Python 3.5 and newer are supported
  37. Documentation
  38. -------------
  39. Full documentation with installation instructions and examples can be found on https://luma-led-matrix.readthedocs.io.
  40. .. image:: https://raw.githubusercontent.com/rm-hull/luma.led_matrix/master/doc/images/devices.jpg
  41. :alt: max7219 matrix
  42. A LED matrix can be acquired for a few pounds from outlets
  43. like `Banggood <http://www.banggood.com/MAX7219-Dot-Matrix-Module-DIY-Kit-SCM-Control-Module-For-Arduino-p-72178.html?currency=GBP>`_.
  44. Likewise 7-segment displays are available from `Ali-Express
  45. <http://www.aliexpress.com/item/MAX7219-Red-Module-8-Digit-7-Segment-Digital-LED-Display-Tube-For-Arduino-MCU/1449630475.html>`_
  46. or `Ebay <http://www.ebay.com/itm/-/172317726225>`_.
  47. .. image:: https://raw.githubusercontent.com/rm-hull/luma.led_matrix/master/doc/images/IMG_2810.JPG
  48. :alt: max7219 sevensegment
  49. .. image:: https://raw.githubusercontent.com/rm-hull/luma.led_matrix/master/doc/images/matrix_cascaded.jpg
  50. :alt: max7219 cascaded
  51. .. image:: https://raw.githubusercontent.com/rm-hull/luma.led_matrix/master/doc/images/box_helloworld.jpg
  52. :alt: max7219 box
  53. .. image:: https://raw.githubusercontent.com/rm-hull/luma.led_matrix/master/doc/images/emulator.gif
  54. :alt: max7219 emulator
  55. Upgrade
  56. -------
  57. Version 0.3.0 was released on 19 January 2017: this came with a rename of the
  58. github project from **max7219** to **luma.led_matrix** to reflect the changing
  59. nature of the codebase.
  60. There is no direct migration path, but the old `docs <https://max7219.readthedocs.io>`_
  61. and `PyPi packages <https://pypi.python.org/pypi/max7219>`_ will remain
  62. available indefinitely, but that deprecated codebase will no longer recieve
  63. updates or fixes.
  64. The consequence is that any existing code that uses the old **max7219** package
  65. should probably be updated.
  66. License
  67. -------
  68. The MIT License (MIT)
  69. Copyright (c) 2013-2021 Richard Hull & Contributors
  70. Permission is hereby granted, free of charge, to any person obtaining a copy
  71. of this software and associated documentation files (the "Software"), to deal
  72. in the Software without restriction, including without limitation the rights
  73. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  74. copies of the Software, and to permit persons to whom the Software is
  75. furnished to do so, subject to the following conditions:
  76. The above copyright notice and this permission notice shall be included in all
  77. copies or substantial portions of the Software.
  78. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  79. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  80. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  81. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  82. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  83. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  84. SOFTWARE.