2020-11-27 05:33:55 -05:00
|
|
|
//
|
|
|
|
// FILE: humidex_table.ino
|
|
|
|
// AUTHOR: Rob Tillaart
|
|
|
|
// PURPOSE: demo
|
|
|
|
// DATE: 2020-04-05
|
2021-01-29 06:31:58 -05:00
|
|
|
|
2020-11-27 05:33:55 -05:00
|
|
|
|
|
|
|
#include "temperature.h"
|
|
|
|
|
2021-01-29 06:31:58 -05:00
|
|
|
|
2020-11-27 05:33:55 -05:00
|
|
|
void setup()
|
|
|
|
{
|
|
|
|
Serial.begin(115200);
|
|
|
|
Serial.println(__FILE__);
|
|
|
|
|
|
|
|
Serial.println();
|
|
|
|
|
|
|
|
for (int cel = 20; cel < 45; cel++)
|
|
|
|
{
|
|
|
|
Serial.print("\t");
|
|
|
|
Serial.print(cel);
|
|
|
|
}
|
|
|
|
Serial.println();
|
|
|
|
Serial.println();
|
|
|
|
|
|
|
|
for (int hum = 100; hum > 15; hum -= 2)
|
|
|
|
{
|
|
|
|
Serial.print(hum);
|
|
|
|
for (int cel = 20; cel < 45; cel++)
|
|
|
|
{
|
|
|
|
float dp = dewPoint(cel, hum);
|
|
|
|
float hi = humidex(cel, dp);
|
|
|
|
Serial.print("\t");
|
|
|
|
Serial.print(round(hi));
|
|
|
|
}
|
|
|
|
Serial.println();
|
|
|
|
}
|
|
|
|
Serial.println();
|
|
|
|
Serial.println();
|
|
|
|
|
|
|
|
Serial.print("Done...");
|
|
|
|
}
|
|
|
|
|
2021-12-28 13:11:26 -05:00
|
|
|
|
2020-11-27 05:33:55 -05:00
|
|
|
void loop()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2021-12-28 13:11:26 -05:00
|
|
|
|
2020-11-27 05:33:55 -05:00
|
|
|
// -- END OF FILE --
|
2021-12-28 13:11:26 -05:00
|
|
|
|