Skip to content

Commit

Permalink
Updated manifest.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpolidoro committed Aug 1, 2018
1 parent 1ef1f33 commit 7193cda
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include DESCRIPTION.rst
include README.md
include README.org
include RELEASE-VERSION
include version.py
include setup.py
Expand Down
70 changes: 35 additions & 35 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -21,37 +21,37 @@
* Example Usage

#+BEGIN_SRC python
from vix_servo_device import VixServoDevice
dev = VixServoDevice() # Might automatically find device if one available
# if it is not found automatically, specify port directly
dev = VixServoDevice(port='/dev/ttyUSB0') # Linux specific port
dev = VixServoDevice(port='/dev/tty.usbmodem262471') # Mac OS X specific port
dev = VixServoDevice(port='COM3') # Windows specific port
dev.get_serial_number()
1126493049
dev.get_balance_data()
['XS204', 'Excellence', '220.0090', 'g']
dev.get_weight_stable()
[-0.0082, 'g'] #if weight is stable
None #if weight is dynamic
dev.get_weight()
[-0.6800, 'g', 'S'] #if weight is stable
[-0.6800, 'g', 'D'] #if weight is dynamic
dev.zero_stable()
True #zeros if weight is stable
False #does not zero if weight is not stable
dev.zero()
'S' #zeros if weight is stable
'D' #zeros if weight is dynamic
from vix_servo_device import VixServoDevice
dev = VixServoDevice() # Might automatically find device if one available
# if it is not found automatically, specify port directly
dev = VixServoDevice(port='/dev/ttyUSB0') # Linux specific port
dev = VixServoDevice(port='/dev/tty.usbmodem262471') # Mac OS X specific port
dev = VixServoDevice(port='COM3') # Windows specific port
dev.get_serial_number()
1126493049
dev.get_balance_data()
['XS204', 'Excellence', '220.0090', 'g']
dev.get_weight_stable()
[-0.0082, 'g'] #if weight is stable
None #if weight is dynamic
dev.get_weight()
[-0.6800, 'g', 'S'] #if weight is stable
[-0.6800, 'g', 'D'] #if weight is dynamic
dev.zero_stable()
True #zeros if weight is stable
False #does not zero if weight is not stable
dev.zero()
'S' #zeros if weight is stable
'D' #zeros if weight is dynamic
#+END_SRC

#+BEGIN_SRC python
devs = VixServoDevices() # Might automatically find all available devices
# if they are not found automatically, specify ports to use
devs = VixServoDevices(use_ports=['/dev/ttyUSB0','/dev/ttyUSB1']) # Linux
devs = VixServoDevices(use_ports=['/dev/tty.usbmodem262471','/dev/tty.usbmodem262472']) # Mac OS X
devs = VixServoDevices(use_ports=['COM3','COM4']) # Windows
dev = devs[0]
devs = VixServoDevices() # Might automatically find all available devices
# if they are not found automatically, specify ports to use
devs = VixServoDevices(use_ports=['/dev/ttyUSB0','/dev/ttyUSB1']) # Linux
devs = VixServoDevices(use_ports=['/dev/tty.usbmodem262471','/dev/tty.usbmodem262472']) # Mac OS X
devs = VixServoDevices(use_ports=['COM3','COM4']) # Windows
dev = devs[0]
#+END_SRC

* Installation
Expand All @@ -61,16 +61,16 @@ dev = devs[0]
** Linux and Mac OS X

#+BEGIN_SRC sh
mkdir -p ~/virtualenvs/vix_servo_device
virtualenv ~/virtualenvs/vix_servo_device
source ~/virtualenvs/vix_servo_device/bin/activate
pip install vix_servo_device
mkdir -p ~/virtualenvs/vix_servo_device
virtualenv ~/virtualenvs/vix_servo_device
source ~/virtualenvs/vix_servo_device/bin/activate
pip install vix_servo_device
#+END_SRC

** Windows

#+BEGIN_SRC sh
virtualenv C:\virtualenvs\vix_servo_device
C:\virtualenvs\vix_servo_device\Scripts\activate
pip install vix_servo_device
virtualenv C:\virtualenvs\vix_servo_device
C:\virtualenvs\vix_servo_device\Scripts\activate
pip install vix_servo_device
#+END_SRC

0 comments on commit 7193cda

Please sign in to comment.