GY-63_MS5611/libraries/Temperature/examples/heatindexC_table/heatindexC_table.ino

53 lines
740 B
Arduino
Raw Normal View History

2020-11-27 05:33:55 -05:00
//
// FILE: heatindexC_table.ino
// AUTHOR: Rob Tillaart
// VERSION: 0.1.0
// 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;
void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.println();
for (int t = 25; t <= 45; t += 1)
{
Serial.print("\t");
Serial.print(t);
}
Serial.println();
Serial.println();
for (int hum = 40; hum <= 100; hum += 5)
{
Serial.print(hum);
for (int t = 25; t <= 45; t += 1)
{
float hi = heatIndexC(t, hum);
Serial.print("\t");
Serial.print(round(hi));
}
Serial.println();
}
Serial.println();
Serial.println();
Serial.print("Done...");
}
void loop()
{
}
// -- END OF FILE --