Skip to content

Commit 7d498cb

Browse files
committed
Use better module names
1 parent 4a4f398 commit 7d498cb

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/modulino/buttons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(self, i2c_bus = None, address = None):
5050
address (int): The I2C address of the module. If not provided, the default address will be used.
5151
"""
5252

53-
super().__init__(i2c_bus, address, "BUTTONS")
53+
super().__init__(i2c_bus, address, "Buttons")
5454
self.long_press_duration = self.default_long_press_duration
5555

5656
self._current_buttons_status = [None, None, None]

src/modulino/buzzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(self, i2c_bus=None, address=None):
9090
i2c_bus (I2C): The I2C bus to use. If not provided, the default I2C bus will be used.
9191
address (int): The I2C address of the module. If not provided, the default address will be used.
9292
"""
93-
super().__init__(i2c_bus, address, "BUZZER")
93+
super().__init__(i2c_bus, address, "Buzzer")
9494
self.data = bytearray(8)
9595
self.no_tone()
9696

src/modulino/distance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(self, i2c_bus = None, address: int | None = None) -> None:
1818
address (int): The I2C address of the module. If not provided, the default address will be used.
1919
"""
2020

21-
super().__init__(i2c_bus, address, "DISTANCE")
21+
super().__init__(i2c_bus, address, "Distance")
2222
self.sensor = VL53L4CD(self.i2c_bus, self.address)
2323
self.sensor.timing_budget = 20
2424
self.sensor.inter_measurement = 0

src/modulino/knob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(self, i2c_bus = None, address = None):
1818
address (int): The I2C address of the module. If not provided, the default address will be used.
1919
"""
2020

21-
super().__init__(i2c_bus, address, "ENCODER")
21+
super().__init__(i2c_bus, address, "Knob")
2222
self._pressed: bool = None
2323
self._encoder_value: int = None
2424
self._value_range: tuple[int, int] = None

src/modulino/movement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self, i2c_bus = None, address: int | None = None) -> None:
2323
i2c_bus (I2C): The I2C bus to use. If not provided, the default I2C bus will be used.
2424
address (int): The I2C address of the module. If not provided, the default address will be used.
2525
"""
26-
super().__init__(i2c_bus, address, "MOVEMENT")
26+
super().__init__(i2c_bus, address, "Movement")
2727
self.sensor = LSM6DSOX(self.i2c_bus, address=self.address)
2828

2929
@property

src/modulino/pixels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(self, i2c_bus = None, address=None):
6565
i2c_bus (I2C): The I2C bus to use. If not provided, the default I2C bus will be used.
6666
address (int): The I2C address of the module. If not provided, the default address will be used.
6767
"""
68-
super().__init__(i2c_bus, address, "LEDS")
68+
super().__init__(i2c_bus, address, "Pixels")
6969
self.clear_all()
7070

7171
def _map(self, x: float | int, in_min: float | int, in_max: float | int, out_min: float | int, out_max: float | int) -> float | int:

src/modulino/thermo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(self, i2c_bus: I2C = None, address: int = DEFAULT_ADDRESS) -> None:
2525
i2c_bus (I2C): The I2C bus to use. If not provided, the default I2C bus will be used.
2626
address (int): The I2C address of the module. If not provided, the default address will be used.
2727
"""
28-
super().__init__(i2c_bus, address, "THERMO")
28+
super().__init__(i2c_bus, address, "Thermo")
2929
self.sensor: hs3003.HS3003 = hs3003.HS3003(self.i2c_bus)
3030

3131
@property

0 commit comments

Comments
 (0)