Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

types-circuitpython

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

types-circuitpython - pypi Package Compare versions

Comparing version
7.0.0rc2
to
7.0.0rc1
+5
-10
bindings/displayio/__init__.pyi

@@ -155,15 +155,10 @@ """Native helpers for driving displays

dither: bool
"""When `True` the ColorConverter dithers the output by adding random noise when
"""When true the color converter dithers the output by adding random noise when
truncating to display bitdepth"""
def make_transparent(self, color: int) -> None:
"""Set the transparent color or index for the ColorConverter. This will
raise an Exception if there is already a selected transparent index.
def make_transparent(self, pixel: int) -> None:
"""Sets a pixel to not opaque."""
def make_opaque(self, pixel: int) -> None:
"""Sets a pixel to opaque."""
:param int color: The color to be transparent"""
def make_opaque(self, color: int) -> None:
"""Make the ColorConverter be opaque and have no transparent pixels.
:param int color: [IGNORED] Use any value"""
_DisplayBus = Union["FourWire", "paralleldisplay.ParallelBus", "I2CDisplay"]

@@ -170,0 +165,0 @@ """:py:class:`FourWire`, :py:class:`paralleldisplay.ParallelBus` or :py:class:`I2CDisplay`"""

@@ -140,5 +140,2 @@ """Pin references and cpu functionality

RESCUE_DEBUG: object
"""The microntroller was reset by the rescue debug port."""
class RunMode:

@@ -145,0 +142,0 @@ """run state of the microcontroller"""

@@ -1,25 +0,3 @@

"""Lightweight 2D shapes for displays
"""Lightweight 2d shapes for displays"""
The :py:attr:`vectorio` module provide simple filled drawing primitives for
use with `displayio`.
.. code-block:: python
group = displayio.Group()
palette = displayio.Palette(1)
palette[0] = 0x125690
circle = vectorio.Circle(pixel_shader=palette, radius=25, x=70, y=40)
group.append(circle)
rectangle = vectorio.Rectangle(pixel_shader=palette, width=40, height=30, x=55, y=45)
group.append(rectangle)
points=[(5, 5), (100, 20), (20, 20), (20, 100)]
polygon = vectorio.Polygon(pixel_shader=palette, points=points, x=0, y=0)
group.append(polygon)
"""
from __future__ import annotations

@@ -41,21 +19,9 @@

:param Union[~displayio.ColorConverter,~displayio.Palette] pixel_shader: The pixel shader that produces colors from values
:param int radius: The radius of the circle in pixels
:param int x: Initial x position of the axis.
:param int y: Initial y position of the axis."""
:param pixel_shader: The pixel shader that produces colors from values
:param radius: The radius of the circle in pixels
:param x: Initial x position of the axis.
:param y: Initial y position of the axis."""
radius: int
"""The radius of the circle in pixels."""
x: int
"""X position of the center point of the circle in the parent."""
y: int
"""Y position of the center point of the circle in the parent."""
location: Tuple[int, int]
"""(X,Y) position of the center point of the circle in the parent."""
pixel_shader: Union[displayio.ColorConverter, displayio.Palette]
"""The pixel shader of the circle."""
class Polygon:

@@ -69,25 +35,11 @@ def __init__(

) -> None:
"""Represents a closed shape by ordered vertices. The path will be treated as
'closed', the last point will connect to the first point.
"""Represents a closed shape by ordered vertices
:param Union[~displayio.ColorConverter,~displayio.Palette] pixel_shader: The pixel
shader that produces colors from values
:param List[Tuple[int,int]] points: Vertices for the polygon
:param int x: Initial screen x position of the 0,0 origin in the points list.
:param int y: Initial screen y position of the 0,0 origin in the points list."""
:param pixel_shader: The pixel shader that produces colors from values
:param points: Vertices for the polygon
:param x: Initial screen x position of the 0,0 origin in the points list.
:param y: Initial screen y position of the 0,0 origin in the points list."""
points: List[Tuple[int, int]]
"""Vertices for the polygon."""
"""Set a new look and shape for this polygon"""
x: int
"""X position of the 0,0 origin in the points list."""
y: int
"""Y position of the 0,0 origin in the points list."""
location: Tuple[int, int]
"""(X,Y) position of the 0,0 origin in the points list."""
pixel_shader: Union[displayio.ColorConverter, displayio.Palette]
"""The pixel shader of the polygon."""
class Rectangle:

@@ -104,17 +56,6 @@ def __init__(

:param Union[~displayio.ColorConverter,~displayio.Palette] pixel_shader: The pixel shader that produces colors from values
:param int width: The number of pixels wide
:param int height: The number of pixels high
:param int x: Initial x position of the top left corner.
:param int y: Initial y position of the top left corner."""
x: int
"""X position of the top left corner of the rectangle in the parent."""
y: int
"""Y position of the top left corner of the rectangle in the parent."""
location: Tuple[int, int]
"""(X,Y) position of the top left corner of the rectangle in the parent."""
pixel_shader: Union[displayio.ColorConverter, displayio.Palette]
"""The pixel shader of the rectangle."""
:param pixel_shader: The pixel shader that produces colors from values
:param width: The number of pixels wide
:param height: The number of pixels high
:param x: Initial x position of the top left corner.
:param y: Initial y position of the top left corner."""
Metadata-Version: 2.1
Name: types-circuitpython
Version: 7.0.0rc2
Version: 7.0.0rc1
Summary: Type support (typings) for CircuitPython built-in binding packages.

@@ -5,0 +5,0 @@ Home-page: https://github.com/hardfury-labs/types-circuitpython

@@ -6,3 +6,3 @@ from os import listdir, path

__name__ = "types-circuitpython"
__version__ = "7.0.0-rc.2"
__version__ = "7.0.0-rc.1"
__repo__ = "https://github.com/hardfury-labs/types-circuitpython"

@@ -9,0 +9,0 @@ __author__ = "HardFury"

Metadata-Version: 2.1
Name: types-circuitpython
Version: 7.0.0rc2
Version: 7.0.0rc1
Summary: Type support (typings) for CircuitPython built-in binding packages.

@@ -5,0 +5,0 @@ Home-page: https://github.com/hardfury-labs/types-circuitpython