odczytałem numer id i teraz po nich chce się odwoływać do poszczególnych czujników jak zaranie do jednego oto mój kod coś to nie chce działać czy ktoś wie w czym problem ?
ow_reset();
ow_write_byte(0x55); //match rom
ow_write_byte(0x13); //odczytany wcześniej adres
ow_write_byte(0x00);
ow_write_byte(0x00);
ow_write_byte(0x01);
ow_write_byte(0xef);
ow_write_byte(0xcf);
ow_write_byte(0xfd);
ow_write_byte(0x28);
ow_write_byte(0x44); // start konwersji
_delay_ms(1000);
ow_write_byte(0x55); //ponowne wybranie układu
ow_write_byte(0x13);
ow_write_byte(0x00);
ow_write_byte(0x00);
ow_write_byte(0x01);
ow_write_byte(0xef);
ow_write_byte(0xcf);
ow_write_byte(0xfd);
ow_write_byte(0x28);
ow_write_byte(0xBE); // odczyt temp
lsb = ow_read_byte();
msb = ow_read_byte();
ow_reset();
Dodano po 3 [godziny] 8 [minuty]: rozwiązałem problem podaje swoje rozwiązanie
ow_reset();
ow_write_byte(0xCC);
ow_write_byte(0x44);
_delay_ms(100);
ow_reset();
ow_write_byte(0x55);
ow_write_byte(0x28);
ow_write_byte(0xfd);
ow_write_byte(0xcf);
ow_write_byte(0xef);
ow_write_byte(0x01);
ow_write_byte(0x00);
ow_write_byte(0x00);
ow_write_byte(0x13);
ow_write_byte(0xBE);
lsb = ow_read_byte();
msb = ow_read_byte();
ow_reset();
ow_write_byte(0x55);
ow_write_byte(0x28);
ow_write_byte(0xdc);
ow_write_byte(0xd5);
ow_write_byte(0x5b);
ow_write_byte(0x01);
ow_write_byte(0x00);
ow_write_byte(0x00);
ow_write_byte(0xcc);
ow_write_byte(0xBE);
lsb1 = ow_read_byte();
msb1 = ow_read_byte();
ow_reset();