mirror of
https://github.com/anklimov/lighthub
synced 2025-12-08 04:39:49 +03:00
Arduino DUE 1-wire fix
This commit is contained in:
@@ -588,6 +588,7 @@ int Item::isActive() {
|
|||||||
case CH_THERMO:
|
case CH_THERMO:
|
||||||
case CH_VC:
|
case CH_VC:
|
||||||
case CH_VCTEMP:
|
case CH_VCTEMP:
|
||||||
|
case CH_PWM:
|
||||||
val = st.aslong;
|
val = st.aslong;
|
||||||
} //switch
|
} //switch
|
||||||
Serial.print(F(":="));
|
Serial.print(F(":="));
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ net = new OneWire (USE_1W_PIN);
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Serial.println(F("\tDS2482 error"));
|
||||||
return false;
|
return false;
|
||||||
// IC Default 9 bit. If you have troubles consider upping it 12. Ups the delay giving the IC more time to process the temperature measurement
|
// IC Default 9 bit. If you have troubles consider upping it 12. Ups the delay giving the IC more time to process the temperature measurement
|
||||||
|
|
||||||
@@ -199,5 +199,3 @@ void owAdd(DeviceAddress addr) {
|
|||||||
}
|
}
|
||||||
t_count++;
|
t_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
src_dir = lighthub
|
src_dir = lighthub
|
||||||
env_default =
|
env_default =
|
||||||
; megaatmega2560
|
; megaatmega2560
|
||||||
due
|
due-5500
|
||||||
; esp8266
|
; esp8266
|
||||||
|
|
||||||
[env:due]
|
[env:due]
|
||||||
@@ -65,6 +65,8 @@ lib_deps =
|
|||||||
platform = atmelsam
|
platform = atmelsam
|
||||||
framework = arduino
|
framework = arduino
|
||||||
board = due
|
board = due
|
||||||
|
lib_ldf_mode = chain+
|
||||||
|
build_flags = !echo -n "-DPIO_SRC_REV="$(git rev-parse --short HEAD)
|
||||||
build_flags = -D Wiz5500
|
build_flags = -D Wiz5500
|
||||||
lib_deps =
|
lib_deps =
|
||||||
https://github.com/sebnil/DueFlashStorage
|
https://github.com/sebnil/DueFlashStorage
|
||||||
@@ -80,6 +82,8 @@ lib_deps =
|
|||||||
https://github.com/knolleary/pubsubclient.git
|
https://github.com/knolleary/pubsubclient.git
|
||||||
https://github.com/anklimov/Artnet.git
|
https://github.com/anklimov/Artnet.git
|
||||||
FastLED
|
FastLED
|
||||||
|
161
|
||||||
|
322
|
||||||
|
|
||||||
[env:megaatmega2560-5500]
|
[env:megaatmega2560-5500]
|
||||||
platform = atmelavr
|
platform = atmelavr
|
||||||
|
|||||||
Reference in New Issue
Block a user