Hi.
I merged this code from some nice projects found on net:
I use DS18S20 with OneWire library. Everything works fine, when I use Arduino.
Then I tried to move the code to ATtiny84 (to spare Arduino). I had no problem using Arduino as ISP (as described here: High-Low Tech – Programming an ATtiny w/ Arduino 1.6 (or 1.0) or High-Low Tech – Arduino board as ATtiny programmer).
When I power ATtiny up, instead of real temperature, I get const "Temp.: -0.6" written on LCD.
Is there something wrong with pin assignment, since ATtiny doesn't read the temp sensor? In the first version of code I used ds.search() for sensor, but in version 2 I hardcoded the MAC of sensor into code, still the same problem. I also tried to connect sensor to other ATtiny pins, but that didn't help, too.
Fritzing breadboard with some explanation and notes is here:
Thanks and best regards
Robert