Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mcauser committed Jun 24, 2017
1 parent 915228e commit c501b50
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,33 @@

A MicroPython library for interfacing with a MLX90614 IR temperature sensor.

For full documentation see http://micropython-mlx90614.rtfd.io/.
![demo](docs/GY-906-MLX90614.jpg)

#### Examples

Basic measurement

```
import mlx90614
from machine import I2C, Pin
i2c = I2C(scl=Pin(5), sda=Pin(4))
sensor = mlx90614.MLX90614(i2c)
print(sensor.read_ambient_temp())
print(sensor.read_object_temp())
```

![demo](docs/GY-906-MLX90614.jpg)
Continuous measurement

```
import time
import mlx90614
from machine import I2C, Pin
i2c = I2C(scl=Pin(5), sda=Pin(4))
sensor = mlx90614.MLX90614(i2c)
while True:
print(sensor.read_ambient_temp(), sensor.read_object_temp())
time.sleep_ms(500)
```

For full documentation see http://micropython-mlx90614.rtfd.io/.

0 comments on commit c501b50

Please sign in to comment.