Changes between Version 17 and Version 18 of MAX31855Sketch


Ignore:
Timestamp:
May 14, 2013 5:45:42 PM (11 years ago)
Author:
maris
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MAX31855Sketch

    v17 v18  
    7070// Switch-Science 2013.5.14(Tue)
    7171
    72 #include "SPI.h"
     72#include <SPI.h>
    7373
    7474// Arduinoボードの電源電圧がキットの電源電圧と同じ場合、
    7575// 以下のマクロを有効にしてモジュールを直挿しできます。
    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, 
    7777// you can enable macro code next two lines
    7878// to put the kit on your arduino directly.
     
    9292  digitalWrite(VCC, HIGH);
    9393#endif
    94   pinMode(SLAVE,OUTPUT);
    95   digitalWrite(SLAVE,HIGH);
     94  pinMode(SLAVE, OUTPUT);
     95  digitalWrite(SLAVE, HIGH);
    9696
    9797  Serial.begin(9600);
     
    133133      disp = (0x3fff - (thermocouple >> 2) + 1)  * -0.25;
    134134    }
    135     Serial.print(thermocouple,HEX);
     135    Serial.print(thermocouple, HEX);
    136136    Serial.print(" : ");
    137137    Serial.print(disp);
     
    144144      disp = (((0xffff - internal) >> 4) + 1)  * -0.0625;
    145145    }
    146     Serial.print(internal,HEX);
     146    Serial.print(internal, HEX);
    147147    Serial.print(" : ");
    148148    Serial.print(disp);
    149149   
    150     Serial.println("");   
     150    Serial.println();   
    151151  }
    152152}