From 5eb4f92a0f4a4239d05e3a635f09bfad7a0baf4f Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Wed, 10 Mar 2010 01:11:21 +0000 Subject: [PATCH] arduino generiert ca 4 grad celsius (raumtemp offset) (mit infrarot term leider nicht wirklich gut mesbar) --- rf433ctl/rf433ctl.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } -- 1.7.10.4