Open Garden  0.10.1-21
Macros | Functions
tcn75.h File Reference
#include "i2c.h"
Include dependency graph for tcn75.h:
This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

◆ ADDR

#define ADDR   0x90

Slave write address 1001 000 R/W

◆ TCN_CONF

#define TCN_CONF   0x21

Register configuration 10 bit resolution and shutdown mode

◆ TCN_TSAMPLE

#define TCN_TSAMPLE   250

Time in msec to wait for a sample in single shot mode. Depend on the resolution setting.

Function Documentation

◆ tcn75_init()

void tcn75_init ( void  )

Initialize tcn75

◆ tcn75_read_temperature()

float tcn75_read_temperature ( void  )

read the temperature and return it in a float