Techshop JAPANのボランティアリフロープログラムです。誰か改造して
Fork of MAX31855 by
Revision 2:288b09dbc34c, committed 2017-02-21
- Comitter:
- Info
- Date:
- Tue Feb 21 11:24:31 2017 +0000
- Parent:
- 1:5eeee89cb281
- Commit message:
- Techshop JAPAN?????????????????????????????????
Changed in this revision
max31855.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 5eeee89cb281 -r 288b09dbc34c max31855.cpp --- a/max31855.cpp Tue Oct 23 10:51:21 2012 +0000 +++ b/max31855.cpp Tue Feb 21 11:24:31 2017 +0000 @@ -61,9 +61,12 @@ value = (tempProbeHigh<< 6 | tempProbeLow>>2); //Get actual temperature (last 2 bits of integer are decimal 0.5 and 0.25) + //temp = (value*0.15); temp = (value*0.25); // Multiply the value by 0.25 to get temp in C or // * (9.0/5.0)) + 32.0; // Convert value to F (ensure proper floats!) - + if(temp > 2500){ + temp = 0; + } return temp; } }else{