00001 #include "lm75.h" 00002 00003 void lm75_setup() { 00004 i2c_setup(); 00005 } 00006 00007 void lm75_set_config(uns8 addr, uns8 config) 00008 { 00009 i2c_write_eeprom(0x90 + addr, 0x01, config); 00010 } 00011 00012 uns8 lm75_get_config(uns8 addr) 00013 { 00014 return i2c_read_eeprom(0x90 + addr, 0x01); 00015 } 00016 00017 00018 uns16 lm75_get_temp(uns8 addr) 00019 { 00020 00021 return i2c_read_eeprom_16bit(0x90 + addr, 0x00); 00022 00023 }