School project.

Dependencies:   Timezone NTPClient BSP_DISCO_F746NG Grove_temperature

helper_functions.h

Committer:
tuxx0046
Date:
2021-01-14
Revision:
8:1a1e7cf7dcb6
Child:
10:137cf2c92871

File content as of revision 8:1a1e7cf7dcb6:

/**
@file helper_functions.h
@brief Contains functions to help with general tasks
@author Tu Tri Huynh
@date 1/14/2021
*/

/**
This function returns the percentage of AnalogIn sensor read values that by default are floating point numbers between 0.00 to 1.00.
1/14/2021
*/
int helper_get_sensor_read_in_percent(float read_value)
{
    return (int)(read_value*100);
}