Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate pump manager into main script. #106

Merged
merged 3 commits into from
Apr 1, 2017
Merged

Integrate pump manager into main script. #106

merged 3 commits into from
Apr 1, 2017

Conversation

JeetShetty
Copy link
Owner

@JeetShetty JeetShetty commented Mar 31, 2017

Fixes #70

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 3841464 on pump_manager into ** on master**.

Copy link
Collaborator

@mtlynch mtlynch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

local_clock = clock.LocalClock()
# The MCP3008 spec and Adafruit library use different naming for the
# Raspberry Pi GPIO pins, so we translate as follows:
# * CLK -> CLK
# * CS/SHDN -> CS
# * DOUT -> MISO
# * DIN -> MOSI
raspberry_pi_io = pi_io.IO(GPIO)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest just defining this inline since it's only used once, like

water_pump = pump.Pump(pi_io.IO(GPIO), utc_clock, wiring_config.gpio_pins.pump)

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 4422e2e on pump_manager into ** on master**.

@JeetShetty JeetShetty merged commit df9516e into master Apr 1, 2017
@JeetShetty JeetShetty deleted the pump_manager branch April 8, 2017 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants