Changes between Version 15 and Version 16 of MAX6675Sketch


Ignore:
Timestamp:
Feb 28, 2013 11:29:54 PM (11 years ago)
Author:
sgk
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MAX6675Sketch

    v15 v16  
    6868  delay(500);
    6969  digitalWrite(SLAVE, LOW);        //  Enable the chip
    70   value = SPI.transfer(0x00) << 8;  //  read high byte
    71   value |= SPI.transfer(0x00);      //  read low byte
    72   digitalWrite(SLAVE, HIGH);         //  Desable the chip
     70  value = SPI.transfer(0x00) << 8;  //  Read high byte
     71  value |= SPI.transfer(0x00);      //  Read low byte
     72  digitalWrite(SLAVE, HIGH);         //  Disable the chip
    7373 
    7474  if ((value & 0x0004) != 0){