Files
pybricks-api/src/pybricks/hubs.pyi
T
David Lechner 7126431f9f pybricks: move into src/ directory
Moving the pybricks package into a src/ directory so that we can add
additional packages without polluting the top-level directory.
2021-07-14 09:41:30 +02:00

41 lines
793 B
Python

# SPDX-License-Identifier: MIT
# Copyright (c) 2020 The Pybricks Authors
from ._common import Speaker, Battery, ColorLight, LightMatrix, Keypad
from .media.ev3dev import Image
from .geometry import Axis
class EV3Brick:
screen: Image
speaker: Speaker
battery: Battery
light: ColorLight
buttons = Keypad
class MoveHub:
battery: Battery
light: ColorLight
class CityHub:
battery: Battery
light: ColorLight
class TechnicHub:
def __init__(self, top_size: Axis, front_side: Axis): ...
battery: Battery
light: ColorLight
class PrimeHub:
def __init__(self, top_size: Axis, front_side: Axis): ...
battery: Battery
light: ColorLight
display: LightMatrix
buttons: Keypad
speaker: Speaker
class InventorHub(PrimeHub): ...