display temp

pull/183/head
alanbjohnston 3 years ago committed by GitHub
parent 3d06e6bc7a
commit 35907a0c77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4068,8 +4068,12 @@ void prompt_for_input() {
case PROMPT_TEMP:
sensorValue = analogRead(TEMPERATURE_PIN);
//Serial.println(sensorValue);
Serial.print("Raw diode voltage: ");
Serial.println(sensorValue);
Temp = T1 + (sensorValue - R1) *((T2 - T1)/(R2 - R1));
Serial.print("Calculated temperature: ");
Serial.print(Temp);
Serial.println(" C");
break;
case PROMPT_VOLTAGE:

Loading…
Cancel
Save

Powered by TurnKey Linux.