Skip to content

Commit

Permalink
Merge pull request #17 from felmue/felmue-extio2-fix-typo-1
Browse files Browse the repository at this point in the history
fix/unit/extio2: Fix typo
  • Loading branch information
lbuque authored Jan 24, 2024
2 parents 3573cc1 + ab61038 commit ab17d7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions m5stack/libs/unit/extio2.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ def write_output_pin(self, id: int, value: Literal[0, 1]) -> None:
def write_servo_angle(self, id: int, angle: int) -> None:
self._write_u8(_REG_SERVO_ANGLE_8B_REG_CH_1 + id, angle)

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

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

0 comments on commit ab17d7e

Please sign in to comment.