mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
50 lines
755 B
C++
50 lines
755 B
C++
//
|
|
// FILE: humidex_table.ino
|
|
// AUTHOR: Rob Tillaart
|
|
// VERSION: 0.1.0
|
|
// PURPOSE: demo
|
|
// DATE: 2020-04-05
|
|
//
|
|
|
|
#include "temperature.h"
|
|
|
|
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...");
|
|
}
|
|
|
|
void loop()
|
|
{
|
|
|
|
}
|
|
|
|
// -- END OF FILE --
|