Files
pybricks-api/pybricks/hubs.py
T
Laurens Valk 529f8fe31c api: rename _common to builtins
Because this module describes devices that can be built into a hub or other device.

Since this design is now explicitly shown in
the docs as well, we don't need to hide this
module in the package.
2019-10-18 16:05:23 +02:00

14 lines
377 B
Python

"""LEGO® Programmable Hubs."""
from enum import Enum
from .builtins import Speaker, Display, Battery, ColorLight, KeyPad
class EV3Brick():
"""LEGO® MINDSTORMS® EV3 Brick.
"""
Port = Enum('Port', ['A', 'B', 'C', 'D', 'S1', 'S2', 'S3', 'S4'])
speaker = Speaker()
display = Display()
battery = Battery()
light = ColorLight()
buttons = KeyPad()