doc/common/Keypad: fix name

Keypad is one word, so the class is not spelled KeyPad.
This commit is contained in:
Laurens Valk
2020-12-23 11:43:48 +01:00
parent 84b882f8b8
commit abe4c1bc9a
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -659,7 +659,7 @@ class LightMatrix:
pass
class KeyPad:
class Keypad:
"""Get status of buttons on a keypad layout."""
def pressed(self):
+3 -3
View File
@@ -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()
+2 -2
View File
@@ -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.