🇩🇪
Ow_Reset(PORTC, 0) ' Onewire reset signal
Ow_Write(PORTC, 0, 0xCC) ' Issue command SKIP_ROM
Ow_Write(PORTC, 0, 0x44) ' Issue command CONVERT_T
Delay_ms(750)
Ow_Reset(PORTC, 0)
Ow_Write(PORTC, 0, 0xCC) ' Issue command SKIP_ROM
Ow_Write(PORTC, 0, 0xBE) ' Issue command READ_SCRATCHPAD
temp = Ow_Read(PORTC, 0)
temp = (Ow_Read(PORTC, 0) << 8) + temp
Display_Temperature(temp)
char sn_liste[sn_max][8];
void ow_sn(char* sn1)
{
ow_reset();
//if (!*sn1) write_byte(Skip_Rom);
//else
{
write_byte(Match_Rom);
writeln_ow(sn1);
}
}
case ds18b20Conv: //Temperatur einlesen vorbereiten
//ow_sn(0); //FALSCH mit (0) sollte ..write_byte(Skip_Rom) ausgeführt werden
ow_reset(); //NEU
write_byte(Skip_Rom);//NEU