No, that didn't help.
When I use ...
#define ONE_WIRE_BUS 12
and connect it to pin #12 there is no response.
I tried it with other pins, for example #0, #1 without success.
When you take a look into the pins_arduino.h of the mega32 library which I use you see the following array:
const uint8_t PROGMEM digital_pin_to_port_PGM[32] = {
PB, // PB0 ** D0
PB, // PB1 ** D1
PB, // PB2 ** D2
PB, // PB3 ** D3
PB, // PB4 ** D4
PB, // PB5 ** D5
PB, // PB6 ** D6
PB, // PB7 ** D7
PD, // PD0 ** D8
PD, // PD1 ** D9
PD, // PD2 ** D10
PD, // PD3 ** D11
PD, // PD4 ** D12
PD, // PD5 ** D13
PD, // PD6 ** D14
PD, // PD7 ** D15
PC, // PC0 ** D16
PC, // PC1 ** D17
PC, // PC2 ** D18
PC, // PC3 ** D19
PC, // PC4 ** D20
PC, // PC5 ** D21
PC, // PC6 ** D22
PC, // PC7 ** D23
PA, // PA7 ** A0 D24
PA, // PA6 ** A1 D25
PA, // PA5 ** A2 D26
PA, // PA4 ** A3 D27
PA, // PA3 ** A4 D28
PA, // PA2 ** A5 D29
PA, // PA1 ** A6 D30
PA, // PA0 ** A7 D31
};
Now you can see why I suspected that it has to be pin # 18 at the ATmega. D12 is mapped to PD4 which is pin #18 at the ATmega.
It seems that there is another reason why it does not work.