#ifndef __TEMP_H #define __TEMP_H #ifndef uchar #define uchar unsigned char #endif #ifndef uint #define uint unsigned int #endif #define DS18B20_SKIP_ROM 0xCC #define DS18B20_CONVERT_TEMP 0x44 #define DS18B20_READ_SCRATCHPAD 0xBE void DS18B20_startConvert(void); int DS18B20_readTemperature(void); #endif