PaulS:
const int DS18S20_Pin=1;
const int ssrPin=0;
const int upPin=9;
const int downPin=10;
const int Setpoint_address=0;
At least some of these could be bytes.
I tried changing all of them as const int, int, and byte. Byte actually used more space that const int.
PaulS:
for (int i = 0; i < 9; i++)
{
data[i] = ds.read();
}
The index is an int?
I don't know. That's what the DS18B20 example has; I don't know enough to try anything else.
Do you have a suggestion?
PaulS:
float tempRead = ((MSB << 8) | LSB);Shifting and oring two bytes does not produce a float.
Again, straight from the example code. I'm receptive to any suggestions.
All in all, I really can't complain. I'm still new enough at this that I'm shocked at what can be accomplished with such a small investment. The chip was about $2.50, the display about $4, the sensor was $1, and the power supply was about $4. By the time I add buttons, wires, some capacitors and an enclosure of some sort, I'll be I still come in under $15.
I've got a similar setup on a Mega328, but that's got all the room in the world in comparison. I'm just curious how much one can get out of the Tiny.