Sample source code for the MAX6613. The MAX6613 is a low-power analog output temperature sensor in a tiny 5-pin SC70 package. The supply current usage for the MAX6613 is typically 7.5µA.
Dependencies: max32630fthr USBDevice
Revision 2:caf92ca064a9, committed 2019-04-26
- Comitter:
- phonemacro
- Date:
- Fri Apr 26 00:57:03 2019 +0000
- Parent:
- 1:9b9c2989d4eb
- Commit message:
- FIx typo in prints
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 9b9c2989d4eb -r caf92ca064a9 main.cpp --- a/main.cpp Tue Apr 23 04:34:36 2019 +0000 +++ b/main.cpp Fri Apr 26 00:57:03 2019 +0000 @@ -84,16 +84,16 @@ daplink.printf("Temperature using Linear Approximation\r\n"); for (i = 0; i < 8; i++) { temperature = (float)((1.8455f - (AIN5_FSV * ain1)) / 0.01123f); - daplink.printf("temperature: %3.1f degrees C C, %3.1f degrees F\r\n", temperature, max6613_celsius_to_fahrenheit(temperature)); + daplink.printf("temperature: %3.1f degrees C, %3.1f degrees F\r\n", temperature, max6613_celsius_to_fahrenheit(temperature)); wait(2); } daplink.printf("\r\n"); - daplink.printf("Temperature using the Quadratic Equation\r\n"); + daplink.printf("Temperature using Quadratic Equation\r\n"); for (i = 0; i < 8; i++) { c2 = AIN5_FSV * ain1; temperature = (-B - sqrt(B*B - 4*A*(C1-c2)))/(2*A); - daplink.printf("temperature: %3.1f degrees C C, %3.1f degrees F\r\n", temperature, max6613_celsius_to_fahrenheit(temperature)); + daplink.printf("temperature: %3.1f degrees C, %3.1f degrees F\r\n", temperature, max6613_celsius_to_fahrenheit(temperature)); wait(2); } daplink.printf("\r\n\r\n");