Skip to content

Commit

Permalink
release v2.9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
anla-xu committed Sep 13, 2022
1 parent 18998a9 commit 33992ba
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# ChangeLog for pymycobot

## v2.9.5(2022-9-13)

- release v2.9.5
- Add MyBuddy serial open(),is_open() function
- Add MyBuddy example

## v2.9.4 (2022-9-8)

- release v2.9.4
Expand Down
2 changes: 1 addition & 1 deletion pymycobot/Interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1125,4 +1125,4 @@ def set_encoders_drag(self, id, encoders, speeds):

# def init_iic(self):
# from smbus2 import SMBus
# i2c = SMBus(1) # 1 代表 /dev/i2c-1
# i2c = SMBus(1) # 1 代表 /dev/i2c-1
2 changes: 1 addition & 1 deletion pymycobot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"Mira"
]

__version__ = "2.9.4-beta-0.2"
__version__ = "2.9.5"
__author__ = "Elephantrobotics"
__email__ = "[email protected]"
__git_url__ = "https://github.com/elephantrobotics/pymycobot"
Expand Down
8 changes: 7 additions & 1 deletion pymycobot/mybuddy.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,4 +375,10 @@ def wait(self, t):
return self

def close(self):
self._serial_port.close()
self._serial_port.close()

def open(self):
self._serial_port.open()

def is_open(self):
return self._serial_port.isOpen()

0 comments on commit 33992ba

Please sign in to comment.