From: Bernhard Tittelbach Date: Wed, 10 Mar 2010 01:11:21 +0000 (+0000) Subject: arduino generiert ca 4 grad celsius (raumtemp offset) (mit infrarot term leider nicht... X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;ds=inline;h=5eb4f92a0f4a4239d05e3a635f09bfad7a0baf4f;hp=71ef15151c5b4c155f50b1e78d789bed86f4f437;p=svn42.git arduino generiert ca 4 grad celsius (raumtemp offset) (mit infrarot term leider nicht wirklich gut mesbar) --- diff --git a/rf433ctl/rf433ctl.pde b/rf433ctl/rf433ctl.pde index 6ead8af..f83a680 100644 --- a/rf433ctl/rf433ctl.pde +++ b/rf433ctl/rf433ctl.pde @@ -22,7 +22,7 @@ OneWire onewire(ONE_WIRE_PIN); DallasTemperature dallas_sensors(&onewire); DeviceAddress onShieldTemp = { 0x10, 0xE7, 0x77, 0xD3, 0x01, 0x08, 0x00, 0x3F }; -#define TEMPC_OFFSET +#define TEMPC_OFFSET_ARDUINO_GENEREATED_HEAT -4.0 typedef struct { byte offset; @@ -205,7 +205,7 @@ void printTemperature(DeviceAddress deviceAddress) dallas_sensors.requestTemperatures(); float tempC = dallas_sensors.getTempC(deviceAddress); Serial.print("Temp C: "); - Serial.println(tempC TEMPC_OFFSET); + Serial.println(tempC TEMPC_OFFSET_ARDUINO_GENEREATED_HEAT); //Serial.print(" Temp F: "); //Serial.println(DallasTemperature::toFahrenheit(tempC)); // Converts tempC to Fahrenheit }