A small library to read the tempature from ds1621(with little changes all those ds162x) devices over I2C.

Committer:
nullsub
Date:
Tue Nov 02 22:35:35 2010 +0000
Revision:
1:eda09b9ea6e2
Parent:
0:0687b136fcab
still not testet and full of bugs

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nullsub 0:0687b136fcab 1 #ifndef TEMPATURE_H
nullsub 0:0687b136fcab 2 #define TEMPATURE_H
nullsub 0:0687b136fcab 3 //---includes------
nullsub 0:0687b136fcab 4 #include "mbed.h"
nullsub 0:0687b136fcab 5 #include "debug.h"
nullsub 0:0687b136fcab 6
nullsub 0:0687b136fcab 7 #include <stdlib.h> // itoa
nullsub 0:0687b136fcab 8
nullsub 0:0687b136fcab 9
nullsub 0:0687b136fcab 10 //------defines---------
nullsub 0:0687b136fcab 11 #define DS1621_Write 0x90
nullsub 0:0687b136fcab 12 #define DS1621_Read 0x91
nullsub 0:0687b136fcab 13
nullsub 0:0687b136fcab 14
nullsub 0:0687b136fcab 15
nullsub 0:0687b136fcab 16 I2C * init_tempature(I2C *interface);
nullsub 0:0687b136fcab 17 void get_tempature(unsigned int adress, char * s); // adress of the i2c ds1621 sensor
nullsub 0:0687b136fcab 18
nullsub 0:0687b136fcab 19
nullsub 0:0687b136fcab 20 #endif