Skip to content

Commit

Permalink
Added an example script
Browse files Browse the repository at this point in the history
  • Loading branch information
erikcw committed Mar 18, 2016
1 parent 63180c9 commit e836589
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions examples/warmup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"""
This example will warmup your Anova when run.
"""
from pycirculate.anova import AnovaController
import datetime


# Set the temp to 130.0F.
TEMP = 130.0

# Can be found with `sudo hcitool lescan`
ANOVA_MAC_ADDRESS = "78:A5:04:38:B3:FA"

def main():
ctrl = AnovaController(ANOVA_MAC_ADDRESS)
print datetime.datetime.now()
print ctrl.read_temp(), ctrl.read_unit()
print ctrl.set_temp(TEMP)
print ctrl.start_anova()
print ctrl.anova_status()


if __name__ == "__main__":
main()

0 comments on commit e836589

Please sign in to comment.