Skip to content

Commit

Permalink
updated docs ready for pushing to github
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Preston committed Jan 22, 2015
1 parent 24fd610 commit 414e08a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ pifacerelayplus
===============
The PiFace Relay Plus module.


Documentation
=============
[http://pifacedigitalio.readthedocs.org/](http://pifacedigitalio.readthedocs.org/)
[http://pifacerelayplus.readthedocs.org/](http://pifacerelayplus.readthedocs.org/)

You can also find the documentation and some examples installed at:

/usr/share/doc/python3-pifacerelayplus/


Install
=======
Aptitude
Expand Down
10 changes: 5 additions & 5 deletions docs/pifacerelayplus.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#################
PiFace Relay Plus
#################
PiFace Relay Plus has four inputs and four relays (each relay is connected in
parallel with an LED). `Extra Boards` offer additional functionality:
PiFace Relay Plus (the base board) has four inputs and four relays (each
relay is connected in parallel with an LED). `Extra Boards` offer
additional functionality:

- *Relay Extra Board* adds four more Relays.
- *Motor Extra Board* adds two motor drivers capable of driving two motors
- *Relay Extra* board adds four more Relays.
- *Motor Extra* board adds two motor drivers capable of driving two motors
each for control of up to four motors.
.. - *Digital Extra Board* adds four inputs/switches, four outputs/an RGB LED.
11 changes: 4 additions & 7 deletions pifacerelayplus/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

# Plus boards
# Motor board IC datasheet: http://www.ti.com/lit/ds/symlink/drv8835.pdf
# RELAY, MOTOR_DC, MOTOR_STEPPER, DIGITAL = range(4)
RELAY, MOTOR_DC, MOTOR_STEPPER = range(3)

DEFAULT_GPIOA_CONF = {'value': 0, 'direction': 0, 'pullup': 0},
Expand Down Expand Up @@ -213,13 +212,11 @@ def __init__(self,
gpioa_conf = {'value': 0, 'direction': 0, 'pullup': 0}
gpiob_conf = {'value': 0, 'direction': 0, 'pullup': 0}

elif plus_board == MOTOR_STEPPER:
self.motors = [MotorStepper(i, self) for i in range(2)]
gpioa_conf = {'value': 0, 'direction': 0, 'pullup': 0}
gpiob_conf = {'value': 0, 'direction': 0, 'pullup': 0}
# elif plus_board == MOTOR_STEPPER:
# self.motors = [MotorStepper(i, self) for i in range(2)]
# gpioa_conf = {'value': 0, 'direction': 0, 'pullup': 0}
# gpiob_conf = {'value': 0, 'direction': 0, 'pullup': 0}

# elif plus_board == DIGITAL:
# pass
else:
gpioa_conf = DEFAULT_GPIOA_CONF
gpiob_conf = DEFAULT_GPIOB_CONF
Expand Down

0 comments on commit 414e08a

Please sign in to comment.