HandsON-BuildHat-API 1.0.8__tar.gz → 1.0.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {handson_buildhat_api-1.0.8/src/HandsON_BuildHat_API.egg-info → handson_buildhat_api-1.0.9}/PKG-INFO +1 -1
- {handson_buildhat_api-1.0.8 → handson_buildhat_api-1.0.9}/pyproject.toml +1 -1
- {handson_buildhat_api-1.0.8 → handson_buildhat_api-1.0.9}/src/HandsON_BuildHat_API/SpikePI.py +4 -3
- {handson_buildhat_api-1.0.8 → handson_buildhat_api-1.0.9/src/HandsON_BuildHat_API.egg-info}/PKG-INFO +1 -1
- {handson_buildhat_api-1.0.8 → handson_buildhat_api-1.0.9}/LICENSE +0 -0
- {handson_buildhat_api-1.0.8 → handson_buildhat_api-1.0.9}/README.md +0 -0
- {handson_buildhat_api-1.0.8 → handson_buildhat_api-1.0.9}/setup.cfg +0 -0
- {handson_buildhat_api-1.0.8 → handson_buildhat_api-1.0.9}/src/HandsON_BuildHat_API/__init__.py +0 -0
- {handson_buildhat_api-1.0.8 → handson_buildhat_api-1.0.9}/src/HandsON_BuildHat_API.egg-info/SOURCES.txt +0 -0
- {handson_buildhat_api-1.0.8 → handson_buildhat_api-1.0.9}/src/HandsON_BuildHat_API.egg-info/dependency_links.txt +0 -0
- {handson_buildhat_api-1.0.8 → handson_buildhat_api-1.0.9}/src/HandsON_BuildHat_API.egg-info/requires.txt +0 -0
- {handson_buildhat_api-1.0.8 → handson_buildhat_api-1.0.9}/src/HandsON_BuildHat_API.egg-info/top_level.txt +0 -0
{handson_buildhat_api-1.0.8 → handson_buildhat_api-1.0.9}/src/HandsON_BuildHat_API/SpikePI.py
RENAMED
|
@@ -229,10 +229,11 @@ class Motor(_ModuleParent):
|
|
|
229
229
|
if not speed in range(-100, 101):
|
|
230
230
|
raise Exception('모터의 속도는 ~100 ~ 100 사이의 정수만 입력 가능합니다.')
|
|
231
231
|
|
|
232
|
-
if speed > 0: sw = 1
|
|
233
|
-
else: sw = 0
|
|
232
|
+
# if speed > 0: sw = 1
|
|
233
|
+
# else: sw = 0
|
|
234
|
+
if speed < 0: speed = speed & 0xFF
|
|
234
235
|
|
|
235
|
-
com = bytes((_ConstValue.TRA_DATA + self._PORT, _ConstValue.MOTOR_PWM,
|
|
236
|
+
com = bytes((_ConstValue.TRA_DATA + self._PORT, _ConstValue.MOTOR_PWM, speed))
|
|
236
237
|
self._get_data(com)
|
|
237
238
|
|
|
238
239
|
def run_to_position(self, degrees, speed) -> None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{handson_buildhat_api-1.0.8 → handson_buildhat_api-1.0.9}/src/HandsON_BuildHat_API/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|