Skip to content

Commit

Permalink
release v3.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
anla-xu committed Apr 14, 2023
1 parent 9da6696 commit 7dbb387
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ChangeLog for pymycobot

## v3.0.8 (2023-04-14)

- release v3.0.8
- Fix Mybuddy GPIO control bug

## v3.0.7 (2023-03-06)

- release v3.0.7
Expand Down
2 changes: 1 addition & 1 deletion pymycobot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
from pymycobot.mybuddyemoticon import MyBuddyEmoticon
__all__.append("MyBuddyEmoticon")

__version__ = "3.0.8b1"
__version__ = "3.0.8"
__author__ = "Elephantrobotics"
__email__ = "[email protected]"
__git_url__ = "https://github.com/elephantrobotics/pymycobot"
Expand Down
6 changes: 3 additions & 3 deletions pymycobot/mybuddy.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ def set_gpio_setup(self, pin_no, mode):
"""
pin_no = self.base_io_to_gpio(pin_no)
if mode == 1:
self.gpio.setup(pin_no, self.gpio.OUT, initial=self.gpio.HIGH)
self.gpio.setup(pin_no, self.gpio.OUT)
else:
self.gpio.setup(pin_no, self.gpio.IN, pull_up_down=self.gpio.DOWN)
self.gpio.setup(pin_no, self.gpio.IN)

def set_gpio_output(self, pin_no, v):
"""Set GPIO output value.
Expand All @@ -284,7 +284,7 @@ def get_gpio_input(self, pin_no):
pin_no: (int)pin number 1-16.
"""
pin = self.base_io_to_gpio(pin_no)
self.gpio.input(pin)
return self.gpio.input(pin)

def set_gpio_pwm_start(self, pin_no, freq = 0.5, dc = 0.5):
"""Set GPIO PWM value.
Expand Down

0 comments on commit 7dbb387

Please sign in to comment.