int read = temp.Read();byte bA = (byte)(read/100);byte bB = (byte)(int.Parse(read.ToString().Substring(1)) / 10);byte bC = (byte)int.Parse(read.ToString().Substring(2));int milivolts = read * (3300 / 1024);int tempC = (milivolts - 500) / 10;Debug.Print("Read " + read + ", Milivolts " + milivolts + ", TempC " + tempC + ", byte " + bA +" " +bB + " " +bC);
Dovev Golan
Member Since 05 Sep 2012Offline Last Active Dec 13 2013 09:29 PM