Code/main.c
//temperature read for DS18B20
//raw 16 bit value in sensorBuffer
temperature read for DS18B20
raw 16 bit value in sensorBuffer
temperature read for DS18B20 raw 16 bit value in sensorBuffer
void read_sensor(void)
{
    init_1W();
    writeByte_1W(0xCC); 
    writeByte_1W(0x44); 
    init_1W();
    writeByte_1W(0xCC); 
    writeByte_1W(0xBE); 
    sensorBuffer[0]=readByte_1W();
    sensorBuffer[1]=readByte_1W();
}
void read_sensor ( void ) { init_1W ( ) ; writeByte_1W ( 0xCC ) ; writeByte_1W ( 0x44 ) ; init_1W ( ) ; writeByte_1W ( 0xCC ) ; writeByte_1W ( 0xBE ) ; sensorBuffer [ 0 ] = readByte_1W ( ) ; sensorBuffer [ 1 ] = readByte_1W ( ) ; }
temperature read for DS18B20
raw 16 bit value in sensorBuffer
temperature read for DS18B20 raw 16 bit value in sensorBuffer
//skip ROM //convert T //skip ROM //read scratchpad