Changes between Version 14 and Version 15 of MAX6675Sketch


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

--

Legend:

Unmodified
Added
Removed
Modified
  • MAX6675Sketch

    v14 v15  
    6767
    6868  delay(500);
    69   digitalWrite(SLAVE, LOW);        //  Enable a chip
    70   value = SPI.transfer(0x00) << 8;  //  read High byte
    71   value |= SPI.transfer(0x00);      //  read Low byte
    72   digitalWrite(SLAVE, HIGH);         //  Desavle a chip
     69  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
    7373 
    7474  if ((value & 0x0004) != 0){