Skip to content

Commit

Permalink
Updated readme with added features
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisHerbots committed Feb 5, 2020
1 parent adc8b43 commit 68b726d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
This repository contains a MicroPython "driver" implementation for the MCP9808
temperature sensor from Microchip.

Currently only a reasonably small subset of the features the sensor is
implemented.

## Implemented
* Reading the temperature value in degree celsius. The `read()` method supports floating point values and the `read_int()` method does not use floating point arythmetic at all and does return a tuple of decimal and fraction parts of the temperature reading.
* Reading the temperature value in degree celsius. The `get_temp()` method supports floating point values and the `get_temp_int()` method does not use floating point arythmetic at all and does return a tuple of decimal and fraction parts of the temperature reading.
* Shutdown mode to save power. When not in shutdown mode the sensor
does draw 200-400 uA. Data acquisition can only be stopped in the so called
"shutdown mode". In this mode communication is still possible using I2C.
Expand All @@ -19,7 +16,11 @@ is set to maximum resolution.
| T_RES_LOW | +-0.25 °C | 65 ms | 15 |
| T_RES_AVG | +-0.125 °C | 130 ms | 7 |
| T_RES_MAX | +-0.0625 °C | 250 ms | 4 |
* Alert mode: boundaries are defined by using
`set_alert_boundary_temp()`. `set_alert_mode(self, enable_alert, output_mode, polarity, selector)`
allows to enable/disable alert functionality, set the desired output mode to
comparator or interrupt, switch te polarity between active-low or active-high
(pull-up resistor required!) as well as what boundaries should trigger an alert.

## Not yet implemented
* Alert temperature boundaries, hysteresis and comparator mode
* Interrupt mode
* hysteresis

0 comments on commit 68b726d

Please sign in to comment.