2020-11-27 05:33:55 -05:00
|
|
|
//
|
|
|
|
// FILE: heatindex_table.ino
|
|
|
|
// AUTHOR: Rob Tillaart
|
|
|
|
// PURPOSE: demo
|
|
|
|
// DATE: 2020-04-04
|
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
|
|
|
volatile float hi;
|
|
|
|
|
2021-12-28 13:11:26 -05:00
|
|
|
|
2020-11-27 05:33:55 -05:00
|
|
|
void setup()
|
|
|
|
{
|
|
|
|
Serial.begin(115200);
|
|
|
|
Serial.println(__FILE__);
|
|
|
|
|
|
|
|
Serial.println();
|
2022-01-06 09:32:26 -05:00
|
|
|
Serial.println(" Compare to: https://www.calculator.net/heat-index-calculator.html\n");
|
|
|
|
Serial.println();
|
|
|
|
|
2020-11-27 05:33:55 -05:00
|
|
|
for (int t = 80; t <= 110; t += 2)
|
|
|
|
{
|
|
|
|
Serial.print("\t");
|
|
|
|
Serial.print(t);
|
|
|
|
}
|
|
|
|
Serial.println();
|
|
|
|
Serial.println();
|
|
|
|
|
2022-01-07 03:05:22 -05:00
|
|
|
for (int hum = 0; hum <= 100; hum += 2)
|
|
|
|
{
|
|
|
|
Serial.print(hum);
|
|
|
|
for (int t = 80; t <= 110; t += 2)
|
|
|
|
{
|
|
|
|
float hi = heatIndex(t, hum);
|
|
|
|
Serial.print("\t");
|
|
|
|
Serial.print(round(hi));
|
|
|
|
}
|
|
|
|
Serial.println();
|
|
|
|
}
|
|
|
|
Serial.println();
|
|
|
|
Serial.println();
|
|
|
|
|
|
|
|
/*
|
2020-11-27 05:33:55 -05:00
|
|
|
for (int hum = 40; hum <= 100; hum += 5)
|
|
|
|
{
|
|
|
|
Serial.print(hum);
|
|
|
|
for (int t = 80; t <= 110; t += 2)
|
|
|
|
{
|
|
|
|
float hi = heatIndex(t, hum);
|
|
|
|
Serial.print("\t");
|
|
|
|
Serial.print(round(hi));
|
|
|
|
}
|
|
|
|
Serial.println();
|
|
|
|
}
|
|
|
|
Serial.println();
|
|
|
|
Serial.println();
|
2022-01-07 03:05:22 -05:00
|
|
|
*/
|
2020-11-27 05:33:55 -05:00
|
|
|
|
|
|
|
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 --
|