Files
pybricks-api/pybricks/hubs.py
T
David Lechner 65deb297dd api: remove Port subclass from hubs
This was removed in the pybricks-micropython implementation.
2020-03-18 18:10:18 -05:00

28 lines
596 B
Python

# SPDX-License-Identifier: MIT
# Copyright (c) 2018-2020 The Pybricks Authors
"""LEGO® Programmable Hubs."""
from .builtins import Speaker, Battery, ColorLight, KeyPad
from .media.ev3dev import Image
class EV3Brick:
"""LEGO® MINDSTORMS® EV3 Brick."""
screen = Image('_screen_')
speaker = Speaker()
battery = Battery()
light = ColorLight()
buttons = KeyPad()
class MoveHub:
"""LEGO® Powered Up Move Hub."""
battery = Battery()
light = ColorLight()
class CityHub:
"""LEGO® Powered Up City Hub."""
battery = Battery()
light = ColorLight()