Updated to latest WiringPi

This commit is contained in:
Phil Howard
2014-07-18 11:48:01 +00:00
parent f388d58fbd
commit 2204176408
37 changed files with 5291 additions and 2573 deletions

View File

@@ -56,6 +56,11 @@ int main (void)
{
temp = newTemp ;
rh = newRh ;
if ((temp & 0x8000) != 0) // Negative
{
temp &= 0x7FFF ;
temp = -temp ;
}
printf ("Temp: %5.1f, RH: %5.1f%%\n", temp / 10.0, rh / 10.0) ;
}
}