Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Commit

Permalink
Update pieSensors.py
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbailey committed May 15, 2016
1 parent 6748355 commit 0f13f89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pieSensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
sleep(0.00004)
GPIO.output(channel, GPIO.HIGH)
sleep(0.0968)
bus.write_i2c_block_data(address, 0x01, [197,131])
sleep(.01)
a0 = bus.read_i2c_block_data(address, 0x00, 2)
bus.write_i2c_block_data(address, 0x01, [213,131])
sleep(.01)
a1 = bus.read_i2c_block_data(address, 0x00, 2)
bus.write_i2c_block_data(address, 0x01, [229,131])
sleep(.01)
bus.write_i2c_block_data(address, 0x01, [245,131])
sleep(.01)
a3 = bus.read_i2c_block_data(address, 0x00, 2)
Expand All @@ -38,7 +38,7 @@
f = open('out.csv', 'a')
f.write(str(out)[1:-1] + "\n")
f.close()
sleep(60)
sleep(59)

import pandas
from matplotlib import pyplot
Expand Down

0 comments on commit 0f13f89

Please sign in to comment.