File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -690,7 +690,9 @@ int ScienceKitCarrier::beginExternalTemperature(){
690
690
691
691
void ScienceKitCarrier::updateExternalTemperature (){
692
692
float temperature;
693
+ pinMode (OW_PIN,INPUT);
693
694
DSTherm drv (ow);
695
+
694
696
drv.convertTempAll (DSTherm::MAX_CONV_TIME, false );
695
697
696
698
static Placeholder<DSTherm::Scratchpad> scrpd;
@@ -715,6 +717,7 @@ void ScienceKitCarrier::updateExternalTemperature(){
715
717
}
716
718
}
717
719
720
+
718
721
float ScienceKitCarrier::getExternalTemperature (){
719
722
return external_temperature;
720
723
}
@@ -726,8 +729,9 @@ bool ScienceKitCarrier::getExternalTemperatureIsConnected(){
726
729
void ScienceKitCarrier::threadExternalTemperature (){
727
730
beginExternalTemperature ();
728
731
while (1 ){
729
- updateAnalogInput (UPDATE_INPUT_A);
732
+ // updateAnalogInput(UPDATE_INPUT_A);
730
733
updateExternalTemperature ();
734
+ updateAnalogInput (UPDATE_INPUT_A);
731
735
rtos::ThisThread::sleep_for (1000 );
732
736
}
733
737
}
Original file line number Diff line number Diff line change 31
31
#include " Arduino_BMI270_BMM150.h"
32
32
#include " Arduino_GroveI2C_Ultrasonic.h"
33
33
34
- #include " OneWireNg_CurrentPlatform.h"
34
+ // #include "OneWireNg_CurrentPlatform.h"
35
+ #include " ../../OneWireNg/src/platform/OneWireNg_PicoRP2040.h"
36
+ #define OneWireNg_CurrentPlatform OneWireNg_PicoRP2040
35
37
#include " drivers/DSTherm.h"
36
38
#include " utils/Placeholder.h"
37
39
You can’t perform that action at this time.
0 commit comments