Changes between Version 14 and Version 15 of MAX6675Sketch
- Timestamp:
- Feb 28, 2013 11:29:29 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MAX6675Sketch
v14 v15 67 67 68 68 delay(500); 69 digitalWrite(SLAVE, LOW); // Enable achip70 value = SPI.transfer(0x00) << 8; // read High byte71 value |= SPI.transfer(0x00); // read Low byte72 digitalWrite(SLAVE, HIGH); // Desa vle achip69 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 73 73 74 74 if ((value & 0x0004) != 0){