Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Arduino 22 - TC74 Code
#include <Wire.h>
#define i2c_addr 0x4F
void setup() {
Serial.begin(9600);
Wire.begin();
}
void loop() {
Serial.print("reading:");
Wire.beginTransmission(i2c_addr);
Wire.send((uint8_t) 0);
Wire.endTransmission();
Wire.requestFrom(i2c_addr, 1);
int tempC = Wire.receive();
Serial.print(tempC);
Serial.print(" degrees C; ");
int tempF = (tempC * 1.8) + 32;
Serial.print (tempF);
Serial.println(" degrees F");
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.