Skip to content

Commit ab17d7e

Browse files
authored
Merge pull request #17 from felmue/felmue-extio2-fix-typo-1
fix/unit/extio2: Fix typo
2 parents 3573cc1 + ab61038 commit ab17d7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

m5stack/libs/unit/extio2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ def write_output_pin(self, id: int, value: Literal[0, 1]) -> None:
110110
def write_servo_angle(self, id: int, angle: int) -> None:
111111
self._write_u8(_REG_SERVO_ANGLE_8B_REG_CH_1 + id, angle)
112112

113-
def write_servo_pluse(self, id: int, pluse: int) -> None:
114-
self._write_u16(_REG_SERVO_PULSE_16B_REG_CH_1 + (id * 2), pluse & 0xFF, pluse >> 8)
113+
def write_servo_pulse(self, id: int, pulse: int) -> None:
114+
self._write_u16(_REG_SERVO_PULSE_16B_REG_CH_1 + (id * 2), pulse & 0xFF, pulse >> 8)
115115

116116
def write_rgb_led(self, id: int, value) -> None:
117117
r = (value >> 16) & 0xFF

0 commit comments

Comments
 (0)