Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
compare.h
- Committer:
- OlgaHoeyer
- Date:
- 2017-05-18
- Revision:
- 1:135bd458e39e
File content as of revision 1:135bd458e39e:
//Author : Olga Hoeyer
//Date : 18 May 2017
//Version : 2.0
//Changes: Structure changed to modular, to ease future use of the funktion.
//Copyright : Open for everyone
//
// Description : Analysis part for EDE PRO2 Team 1 project.
//Program takes temperature and humidity as arguments (read from sensors),
//together with lower and higher limit on temperature and evaluate air quality.
//Output is status (int, from 1 to 5).
//
// Usage: Compare_values(float hum, float temp,
// int temperature_low, int temperature_high)
int Compare_values(float hum, float temp,
int temperature_low, int temperature_high);