We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4855e0 commit 7fdd00bCopy full SHA for 7fdd00b
ports/nrf52840/core/hardware/ads1015/ads1015.cpp
@@ -72,7 +72,8 @@ void ads1015LL::read(double& digital_value) {
72
DEBUG_TRACE("ads1015LL::read: %u bin >> 4 digital value = %f ", bin_value,digital_value);
73
//digital_value = (double)digital_value;
74
DEBUG_TRACE("ads1015LL::read: %f digit", digital_value);
75
- digital_value = (digital_value/1666)*5;
+ digital_value = digital_value*3.0F;
76
+ //digital_value = (digital_value/1666)*5;
77
DEBUG_TRACE("ads1015LL::read: %f Volt", digital_value);
78
digital_value = 800 +((1060-800)/5)*digital_value;
79
DEBUG_TRACE("ads1015LL::read: %f hPa", digital_value);
0 commit comments