A small library to read the tempature from ds1621(with little changes all those ds162x) devices over I2C.
ds1621.h
- Committer:
- nullsub
- Date:
- 2010-11-02
- Revision:
- 1:eda09b9ea6e2
- Parent:
- 0:0687b136fcab
File content as of revision 1:eda09b9ea6e2:
#ifndef TEMPATURE_H #define TEMPATURE_H //---includes------ #include "mbed.h" #include "debug.h" #include <stdlib.h> // itoa //------defines--------- #define DS1621_Write 0x90 #define DS1621_Read 0x91 I2C * init_tempature(I2C *interface); void get_tempature(unsigned int adress, char * s); // adress of the i2c ds1621 sensor #endif