modify the write function for temperature update If you use update temperature, you modify the repeat condition when write function use - read16() -> m_I2C.write(m_Addr, &reg, 1); //stop condition - read16() -> m_I2C.write(m_Addr, &reg, 1,1); //repeat condition

Fork of LM75B by Neil Thiessen

Revision:
4:06676376766a
Parent:
3:9d68eed28bfb
Child:
8:2b797c309258
--- a/LM75B.cpp	Fri Aug 02 18:26:48 2013 +0000
+++ b/LM75B.cpp	Fri Aug 02 22:00:15 2013 +0000
@@ -1,11 +1,11 @@
 /* LM75B Driver Library
- * Copyright 2013 Neil Thiessen
+ * Copyright (c) 2013 Neil Thiessen
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
- * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,