Changes between Version 17 and Version 18 of MAX31855Sketch
- Timestamp:
- May 14, 2013 5:45:42 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MAX31855Sketch
v17 v18 70 70 // Switch-Science 2013.5.14(Tue) 71 71 72 #include "SPI.h"72 #include <SPI.h> 73 73 74 74 // Arduinoボードの電源電圧がキットの電源電圧と同じ場合、 75 75 // 以下のマクロを有効にしてモジュールを直挿しできます。 76 // If working voltage of your arduino board is same as the kit, 76 // If working voltage of your arduino board is same as the kit, 77 77 // you can enable macro code next two lines 78 78 // to put the kit on your arduino directly. … … 92 92 digitalWrite(VCC, HIGH); 93 93 #endif 94 pinMode(SLAVE, OUTPUT);95 digitalWrite(SLAVE, HIGH);94 pinMode(SLAVE, OUTPUT); 95 digitalWrite(SLAVE, HIGH); 96 96 97 97 Serial.begin(9600); … … 133 133 disp = (0x3fff - (thermocouple >> 2) + 1) * -0.25; 134 134 } 135 Serial.print(thermocouple, HEX);135 Serial.print(thermocouple, HEX); 136 136 Serial.print(" : "); 137 137 Serial.print(disp); … … 144 144 disp = (((0xffff - internal) >> 4) + 1) * -0.0625; 145 145 } 146 Serial.print(internal, HEX);146 Serial.print(internal, HEX); 147 147 Serial.print(" : "); 148 148 Serial.print(disp); 149 149 150 Serial.println( "");150 Serial.println(); 151 151 } 152 152 }