mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-14 18:47:32 +00:00
doc/common/Keypad: fix name
Keypad is one word, so the class is not spelled KeyPad.
This commit is contained in:
+1
-1
@@ -659,7 +659,7 @@ class LightMatrix:
|
||||
pass
|
||||
|
||||
|
||||
class KeyPad:
|
||||
class Keypad:
|
||||
"""Get status of buttons on a keypad layout."""
|
||||
|
||||
def pressed(self):
|
||||
|
||||
+3
-3
@@ -3,7 +3,7 @@
|
||||
|
||||
"""LEGO® Programmable Hubs."""
|
||||
from ._common import (Speaker as _Speaker, Battery as _Battery,
|
||||
ColorLight as _ColorLight, KeyPad as _KeyPad,
|
||||
ColorLight as _ColorLight, Keypad as _Keypad,
|
||||
LightMatrix as _LightMatrix)
|
||||
from .media.ev3dev import Image as _Image
|
||||
|
||||
@@ -14,7 +14,7 @@ class EV3Brick:
|
||||
speaker = _Speaker()
|
||||
battery = _Battery()
|
||||
light = _ColorLight()
|
||||
buttons = _KeyPad()
|
||||
buttons = _Keypad()
|
||||
|
||||
|
||||
class MoveHub:
|
||||
@@ -40,7 +40,7 @@ class PrimeHub:
|
||||
battery = _Battery()
|
||||
light = _ColorLight()
|
||||
display = _LightMatrix(5, 5)
|
||||
buttons = _KeyPad()
|
||||
buttons = _Keypad()
|
||||
speaker = _Speaker()
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
"""LEGO® Powered Up motor, sensors, and lights."""
|
||||
|
||||
from ._common import (KeyPad as _KeyPad, DCMotor as _DCMotor,
|
||||
from ._common import (Keypad as _Keypad, DCMotor as _DCMotor,
|
||||
ColorLight as _ColorLight, Motor as _Motor,
|
||||
LightArray as _LightArray, Light as _Light)
|
||||
|
||||
@@ -29,7 +29,7 @@ class RemoteControl:
|
||||
"""LEGO® Powered Up Bluetooth Remote Control/Handset."""
|
||||
|
||||
light = _ColorLight()
|
||||
buttons = _KeyPad()
|
||||
buttons = _Keypad()
|
||||
|
||||
def __init__(self, device=None, timeout=10000):
|
||||
"""Connect the handset to the hub.
|
||||
|
||||
Reference in New Issue
Block a user