|
Open Garden
0.10.1-21
|
#include "i2c.h"

Go to the source code of this file.
Macros | |
| #define | ADDR 0x90 |
| #define | TCN_CONF 0x21 |
| #define | TCN_TSAMPLE 250 |
Functions | |
| void | tcn75_init (void) |
| float | tcn75_read_temperature (void) |
| #define ADDR 0x90 |
Slave write address 1001 000 R/W
| #define TCN_CONF 0x21 |
Register configuration 10 bit resolution and shutdown mode
| #define TCN_TSAMPLE 250 |
Time in msec to wait for a sample in single shot mode. Depend on the resolution setting.
| void tcn75_init | ( | void | ) |
Initialize tcn75
| float tcn75_read_temperature | ( | void | ) |
read the temperature and return it in a float
1.8.13