adafruit_pixel_framebuf
¶
Neopixel and Dotstar Framebuffer Helper
Author(s): Melissa LeBlanc-Williams
Implementation Notes¶
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s LED Animation library: https://github.com/adafruit/Adafruit_CircuitPython_LED_Animation
Adafruit’s framebuf library: https://github.com/adafruit/Adafruit_CircuitPython_framebuf
- class adafruit_pixel_framebuf.PixelFramebuffer(pixels, width, height, orientation=1, alternating=True, reverse_x=False, reverse_y=False, top=0, bottom=0, rotation=0)¶
NeoPixel and Dotstar FrameBuffer for easy drawing and text on a grid of either kind of pixel
- Parameters:
strip – An object that implements the Neopixel or Dotstar protocol.
width – Framebuffer width.
height – Framebuffer height.
orientation – Orientation of the strip pixels - HORIZONTAL (default) or VERTICAL.
alternating – Whether the strip alternates direction from row to row (default True).
reverse_x – Whether the strip X origin is on the right side (default False).
reverse_y – Whether the strip Y origin is on the bottom (default False).
top (tuple) – (x, y) coordinates of grid top left corner (Optional)
bottom (tuple) – (x, y) coordinates of grid bottom right corner (Optional)
rotation (int) – A value of 0-3 representing the rotation of the framebuffer (default 0)
- blit()¶
blit is not yet implemented
- display()¶
Copy the raw buffer changes to the grid and show