tm3d
/
owSlave2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** SET 1-Wire Flasher Address from 0x0EE0 to 0x0EC0 **** for more freedom to impleme...
[owSlave2.git]
/
DS18B20_MAX44009
/
DS18B20_MAX44009.c
diff --git
a/DS18B20_MAX44009/DS18B20_MAX44009.c
b/DS18B20_MAX44009/DS18B20_MAX44009.c
index
359d95e
..
f4bd316
100644
(file)
--- a/
DS18B20_MAX44009/DS18B20_MAX44009.c
+++ b/
DS18B20_MAX44009/DS18B20_MAX44009.c
@@
-48,7
+48,7
@@
extern void OWINIT();
uint8_t owid[8]={0x28, 0xA2, 0xD9, 0x84, 0x00, 0x16, 0x77, 0x6B};/**/
uint8_t owid[8]={0x28, 0xA2, 0xD9, 0x84, 0x00, 0x16, 0x77, 0x6B};/**/
-uint8_t config_info[16]={0x0
2,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02
,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
+uint8_t config_info[16]={0x0
3,0x04, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x01
,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
#if (owid>128)
#error "Variable not correct"
#if (owid>128)
#error "Variable not correct"
@@
-108,7
+108,7
@@
int main(void){
while(1) {
if (gcontrol) {
while(1) {
if (gcontrol) {
- volatile double l=MAX44009getlux(
);
+ volatile double l=MAX44009getlux(
1);
if (l<0.030) l=0.030; //Darf nicht 0 sein. minimum -35°C Sensor minimum 0.045
//double l=1000;
l=log(l)*10*16;
if (l<0.030) l=0.030; //Darf nicht 0 sein. minimum -35°C Sensor minimum 0.045
//double l=1000;
l=log(l)*10*16;