Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fix the formatting of the first RPi example. Include header to the output of the second RPi example.
  • Loading branch information
radiskis committed Feb 23, 2016
1 parent 17ffe7d commit e76a407
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 e76a407

Please sign in to comment.