Introduction
============
.. image:: https://readthedocs.org/projects/adafruit-circuitpython-pixel-framebuf/badge/?version=latest
:target: https://docs.circuitpython.org/projects/pixel_framebuf/en/latest/
:alt: Documentation Status
.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg
:target: https://adafru.it/discord
:alt: Discord
.. image:: https://github.com/adafruit/Adafruit_CircuitPython_Pixel_Framebuf/workflows/Build%20CI/badge.svg
:target: https://github.com/adafruit/Adafruit_CircuitPython_Pixel_Framebuf/actions
:alt: Build Status
.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
:target: https://github.com/astral-sh/ruff
:alt: Code Style: Ruff
Neopixel and Dotstar Framebuffer Helper
Dependencies
=============
This driver depends on:
* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_
* `Adafruit LED Animation <https://github.com/adafruit/Adafruit_CircuitPython_LED_Animation>`_
* `Adafruit framebuf <https://github.com/adafruit/Adafruit_CircuitPython_framebuf>`_
Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle <https://circuitpython.org/libraries>`_.
Installing from PyPI
=====================
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
PyPI <https://pypi.org/project/adafruit-circuitpython-pixel_framebuf/>`_. To install for current user:
.. code-block:: shell
pip3 install adafruit-circuitpython-pixel-framebuf
To install system-wide (this may be required in some cases):
.. code-block:: shell
sudo pip3 install adafruit-circuitpython-pixel-framebuf
To install in a virtual environment in your current project:
.. code-block:: shell
mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-pixel-framebuf
Usage Example
=============
.. code-block:: python
"""
This example runs on an Adafruit NeoPixel Feather
"""
import board
import neopixel
from adafruit_pixel_framebuf import PixelFramebuffer
pixel_pin = board.D6
pixel_width = 8
pixel_height = 4
pixels = neopixel.NeoPixel(
pixel_pin,
pixel_width * pixel_height,
brightness=0.1,
auto_write=False,
)
pixel_framebuf = PixelFramebuffer(
pixels,
pixel_width,
pixel_height,
alternating=False,
)
pixel_framebuf.fill(0x000088)
pixel_framebuf.pixel(5, 1, 0xFFFF00)
pixel_framebuf.line(0, 0, pixel_width - 1, pixel_height - 1, 0x00FF00)
pixel_framebuf.display()
Documentation
=============
API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/pixel_framebuf/en/latest/>`_.
For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.
Contributing
============
Contributions are welcome! Please read our `Code of Conduct
<https://github.com/adafruit/Adafruit_CircuitPython_Pixel_Framebuf/blob/master/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.
Raw data
{
"_id": null,
"home_page": null,
"name": "adafruit-circuitpython-pixel-framebuf",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "adafruit, blinka, circuitpython, micropython, pixel_framebuf, neopixel, framebuf, framebuffer, dotstar, matrix, animation, led, ws2812, ap102",
"author": null,
"author_email": "Adafruit Industries <circuitpython@adafruit.com>",
"download_url": "https://files.pythonhosted.org/packages/fe/21/1b854d00c65fc33fa2f643b0943587c9b28f7fd0ec24c17ba080c5b57eda/adafruit_circuitpython_pixel_framebuf-1.1.18.tar.gz",
"platform": null,
"description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-pixel-framebuf/badge/?version=latest\n :target: https://docs.circuitpython.org/projects/pixel_framebuf/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_Pixel_Framebuf/workflows/Build%20CI/badge.svg\n :target: https://github.com/adafruit/Adafruit_CircuitPython_Pixel_Framebuf/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\nNeopixel and Dotstar Framebuffer Helper\n\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_\n* `Adafruit LED Animation <https://github.com/adafruit/Adafruit_CircuitPython_LED_Animation>`_\n* `Adafruit framebuf <https://github.com/adafruit/Adafruit_CircuitPython_framebuf>`_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle <https://circuitpython.org/libraries>`_.\n\nInstalling from PyPI\n=====================\n\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI <https://pypi.org/project/adafruit-circuitpython-pixel_framebuf/>`_. To install for current user:\n\n.. code-block:: shell\n\n pip3 install adafruit-circuitpython-pixel-framebuf\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo pip3 install adafruit-circuitpython-pixel-framebuf\n\nTo install in a virtual environment in your current project:\n\n.. code-block:: shell\n\n mkdir project-name && cd project-name\n python3 -m venv .venv\n source .venv/bin/activate\n pip3 install adafruit-circuitpython-pixel-framebuf\n\nUsage Example\n=============\n\n.. code-block:: python\n\n \"\"\"\n This example runs on an Adafruit NeoPixel Feather\n \"\"\"\n import board\n import neopixel\n from adafruit_pixel_framebuf import PixelFramebuffer\n\n pixel_pin = board.D6\n pixel_width = 8\n pixel_height = 4\n\n pixels = neopixel.NeoPixel(\n pixel_pin,\n pixel_width * pixel_height,\n brightness=0.1,\n auto_write=False,\n )\n\n pixel_framebuf = PixelFramebuffer(\n pixels,\n pixel_width,\n pixel_height,\n alternating=False,\n )\n\n pixel_framebuf.fill(0x000088)\n pixel_framebuf.pixel(5, 1, 0xFFFF00)\n pixel_framebuf.line(0, 0, pixel_width - 1, pixel_height - 1, 0x00FF00)\n pixel_framebuf.display()\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/pixel_framebuf/en/latest/>`_.\n\nFor information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n<https://github.com/adafruit/Adafruit_CircuitPython_Pixel_Framebuf/blob/master/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Neopixel and Dotstar Framebuffer Helper",
"version": "1.1.18",
"project_urls": {
"Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_Pixel_Framebuf"
},
"split_keywords": [
"adafruit",
" blinka",
" circuitpython",
" micropython",
" pixel_framebuf",
" neopixel",
" framebuf",
" framebuffer",
" dotstar",
" matrix",
" animation",
" led",
" ws2812",
" ap102"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "49a934c39348a0966331c5e8d944c90878f29aa654913a4da7bbda807662247d",
"md5": "ff99e4eaf69a5b649199aadd629102b0",
"sha256": "57c7e1ef25bbe5887c9208d58ffcff041e9d428f336b036c5c4d30464b4bf16c"
},
"downloads": -1,
"filename": "adafruit_circuitpython_pixel_framebuf-1.1.18-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ff99e4eaf69a5b649199aadd629102b0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5421,
"upload_time": "2025-10-20T20:45:46",
"upload_time_iso_8601": "2025-10-20T20:45:46.338684Z",
"url": "https://files.pythonhosted.org/packages/49/a9/34c39348a0966331c5e8d944c90878f29aa654913a4da7bbda807662247d/adafruit_circuitpython_pixel_framebuf-1.1.18-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "fe211b854d00c65fc33fa2f643b0943587c9b28f7fd0ec24c17ba080c5b57eda",
"md5": "da24709cd90c47eff9c97365536c86ed",
"sha256": "f1d1c85240a40151cd82d297e17dac7615a608087e7fc59fc83ec9b9d364596b"
},
"downloads": -1,
"filename": "adafruit_circuitpython_pixel_framebuf-1.1.18.tar.gz",
"has_sig": false,
"md5_digest": "da24709cd90c47eff9c97365536c86ed",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 28300,
"upload_time": "2025-10-20T20:45:47",
"upload_time_iso_8601": "2025-10-20T20:45:47.125191Z",
"url": "https://files.pythonhosted.org/packages/fe/21/1b854d00c65fc33fa2f643b0943587c9b28f7fd0ec24c17ba080c5b57eda/adafruit_circuitpython_pixel_framebuf-1.1.18.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-20 20:45:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "adafruit",
"github_project": "Adafruit_CircuitPython_Pixel_Framebuf",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "Adafruit-Blinka",
"specs": []
},
{
"name": "adafruit-circuitpython-framebuf",
"specs": [
[
">=",
"1.4.2"
]
]
},
{
"name": "adafruit-circuitpython-led-animation",
"specs": []
},
{
"name": "adafruit-circuitpython-typing",
"specs": [
[
"~=",
"1.4"
]
]
}
],
"lcname": "adafruit-circuitpython-pixel-framebuf"
}