mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
This is the v2 branch which only supports EV3. Removing the extra APIs will prevent them from showing up when this library is used for code completion.
17 lines
476 B
Python
17 lines
476 B
Python
# SPDX-License-Identifier: MIT
|
|
# Copyright (c) 2018-2020 The Pybricks Authors
|
|
|
|
"""LEGO® Programmable Hubs."""
|
|
from ._common import (Speaker as _Speaker, Battery as _Battery,
|
|
ColorLight as _ColorLight, KeyPad as _KeyPad)
|
|
from .media.ev3dev import Image as _Image
|
|
|
|
|
|
class EV3Brick:
|
|
"""LEGO® MINDSTORMS® EV3 Brick."""
|
|
screen = _Image('_screen_')
|
|
speaker = _Speaker()
|
|
battery = _Battery()
|
|
light = _ColorLight()
|
|
buttons = _KeyPad()
|