-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of hci:humancomputerintegration/rehamove-integr…
…ation-lib
- Loading branch information
Showing
12 changed files
with
469 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from rehamove import * | ||
import time | ||
r = Rehamove("COM3") # while USB device is unplugged | ||
while r.rehamove == None: # plug in the USB device at some point during the loop | ||
r = Rehamove("COM3") | ||
time.sleep(0.5) | ||
r.battery() | ||
r.pulse(1, 6, 200) | ||
r.version() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,34 @@ | ||
SET build_directory=../../../builds/python/windows_amd64 | ||
SET precompiled_directory=../../../hasomed_precompiled/smpt_rm3_msvc2015_x86_amd64_static | ||
SET python3_build_directory=../../../builds/python/windows_amd64 | ||
SET python2_build_directory=../../../builds/python2/windows_amd64 | ||
|
||
echo rehamove-integration-lib: Performing the build (Python on Windows) | ||
echo rehamove-integration-lib: Performing the build (Python3 on Windows) | ||
swig -python rehamovelib.i | ||
cl /LD /MD rehamovelib.c rehamovelib_wrap.c /Fe_rehamovelib.pyd /I "C:/Users/Agggron/AppData/Local/Programs/Python/Python37/include" /I "%precompiled_directory%/include/low-level" /I "%precompiled_directory%/include/general" /link "%precompiled_directory%/lib/libsmpt.lib" "C:/Users/Agggron/AppData/Local/Programs/Python/Python37/libs/python37.lib" | ||
|
||
echo rehamove-integration-lib: Moving built files into the builds directory | ||
copy rehamove.py "%build_directory%" | ||
move rehamovelib.py "%build_directory%" | ||
move _rehamovelib.pyd "%build_directory%" | ||
|
||
echo rehamove-integration-lib: Cleaning up intermediate build files | ||
echo rehamove-integration-lib: Moving built files into the builds directory and cleaning up files. | ||
move _rehamovelib.pyd "%python3_build_directory%" | ||
copy rehamove.py "%python3_build_directory%" | ||
move rehamovelib.py "%python3_build_directory%" | ||
del rehamovelib.obj | ||
del rehamovelib_wrap.obj | ||
del _rehamovelib.lib | ||
del _rehamovelib.exp | ||
del rehamovelib_wrap.c | ||
|
||
|
||
echo rehamove-integration-lib: Performing the build (Python2 on Windows) | ||
swig -python rehamovelib.i | ||
cl /LD /MD rehamovelib.c rehamovelib_wrap.c /Fe_rehamovelib.pyd /I "C:/Python27/include" /I "%precompiled_directory%/include/low-level" /I "%precompiled_directory%/include/general" /link "%precompiled_directory%/lib/libsmpt.lib" "C:/Python27/libs/python27.lib" | ||
|
||
echo rehamove-integration-lib: Moving built files into the builds directory and cleaning up files. | ||
move _rehamovelib.pyd "%python2_build_directory%" | ||
copy rehamove.py "%python2_build_directory%" | ||
move rehamovelib.py "%python2_build_directory%" | ||
del rehamovelib.obj | ||
del rehamovelib_wrap.obj | ||
del _rehamovelib.lib | ||
del _rehamovelib.exp | ||
del _rehamovelib.exp | ||
del rehamovelib_wrap.c | ||
|
||
echo rehamove-integration-lib: Build complete. |
Oops, something went wrong.