From abe4c1bc9a053be232a9d9c51cbabfcac29b495d Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Wed, 23 Dec 2020 11:43:48 +0100 Subject: [PATCH] doc/common/Keypad: fix name Keypad is one word, so the class is not spelled KeyPad. --- pybricks/_common.py | 2 +- pybricks/hubs.py | 6 +++--- pybricks/pupdevices.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pybricks/_common.py b/pybricks/_common.py index c2c7cfc..420da63 100644 --- a/pybricks/_common.py +++ b/pybricks/_common.py @@ -659,7 +659,7 @@ class LightMatrix: pass -class KeyPad: +class Keypad: """Get status of buttons on a keypad layout.""" def pressed(self): diff --git a/pybricks/hubs.py b/pybricks/hubs.py index 47e223d..fda98ec 100644 --- a/pybricks/hubs.py +++ b/pybricks/hubs.py @@ -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() diff --git a/pybricks/pupdevices.py b/pybricks/pupdevices.py index 93eabba..53ffd76 100644 --- a/pybricks/pupdevices.py +++ b/pybricks/pupdevices.py @@ -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.