Changes between Version 15 and Version 16 of MAX6675Sketch
- Timestamp:
- Feb 28, 2013 11:29:54 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MAX6675Sketch
v15 v16 68 68 delay(500); 69 69 digitalWrite(SLAVE, LOW); // Enable the chip 70 value = SPI.transfer(0x00) << 8; // read high byte71 value |= SPI.transfer(0x00); // read low byte72 digitalWrite(SLAVE, HIGH); // D esable the chip70 value = SPI.transfer(0x00) << 8; // Read high byte 71 value |= SPI.transfer(0x00); // Read low byte 72 digitalWrite(SLAVE, HIGH); // Disable the chip 73 73 74 74 if ((value & 0x0004) != 0){