#include #include static float temp_vesi = 0.; static float temp_ulkoilma = 0.; struct owaddr addr_vesi = {0x10, {0x39, 0xce, 0xac, 0x00, 0x08, 0x00}, 0xcd}; struct owaddr addr_ulkoilma = {0x10, {0xff, 0x57, 0x0f, 0x01, 0x08, 0x00}, 0x2e}; /* Public functions */ void temperature_update() { temp_vesi = ds18s20_temperature(&addr_vesi); temp_ulkoilma = ds18s20_temperature(&addr_ulkoilma); } float get_temperature_vesi() { return temp_vesi; } float get_temperature_ulkoilma() { return temp_ulkoilma; }