Skip to content

Commit

Permalink
Merge pull request #5 from kuzavas/master
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Miceuz committed Feb 23, 2016
2 parents 17ffe7d + e76a407 commit 54f7c2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ if __name__ == "__main__":
while True:
print "%d\t%d\t%d" % (chirp.moist(), chirp.temp(), chirp.light())
time.sleep(1)
```
```

This is another RasPi example provided by user *krikk*
```python
Expand All @@ -108,6 +108,7 @@ sleep(3)
light = i2c.readU16(4, False)
temp = i2c.readS16(5, False)/float(10)
moisture = i2c.readU16(0, False)
print "Temperature\tMoisture\tBrightness"
print str(temp) + ":" + str(moisture) + ":" + str(light)
```

Expand Down

0 comments on commit 54f7c2d

Please sign in to comment.