Skip to content

Commit

Permalink
change DAC api
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Feb 2, 2021
1 parent 8b14b50 commit f77980b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pioreactor/actions/led_intensity.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def led_intensity(
assert 0 <= intensity <= 100
assert channel in CHANNELS
dac = DAC43608()
dac.power_to(getattr(dac, channel), intensity / 100)
dac.power_up(getattr(dac, channel))
dac.set_intensity_to(getattr(dac, channel), intensity / 100)
except Exception as e:
logger.debug(e, exc_info=True)
logger.error(e)
Expand Down
4 changes: 2 additions & 2 deletions pioreactor/cli/pio.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def version():
click.echo(pioreactor.__version__)


@pio.command(name="update", short_help="update the PioreactorApp (and UI) to latest")
@click.option("--ui", is_flag=True)
@pio.command(name="update", short_help="update the PioreactorApp to latest")
@click.option("--ui", is_flag=True, help="also update the PioreactoUI to latest")
def update(ui):
import subprocess

Expand Down

0 comments on commit f77980b

Please sign in to comment.