School project.

Dependencies:   Timezone NTPClient BSP_DISCO_F746NG Grove_temperature

Revision:
13:41debc0b9063
Parent:
10:137cf2c92871
Child:
14:3ac7c08dbc52
--- a/helper_functions.h	Mon Jan 18 07:41:31 2021 +0000
+++ b/helper_functions.h	Mon Jan 18 13:39:58 2021 +0000
@@ -13,4 +13,33 @@
 int helper_get_sensor_read_in_percent(float read_value)
 {
     return (int)(read_value*100);
+}
+
+/**
+This function returns a rounded float value, used for temperature readings.
+@temp Temperature value to be rounded
+*/
+float helper_round_temperature(float temp)
+{
+    return floorf(temp * 100)/100;
+}
+
+/**
+This function converts Celsius temperature to Fahrenheit.
+@temp Celsius value
+*/
+float helper_convert_celsius_to_fahrenheit(float temp)
+{
+    float fahrenheit = ((temp * 9)/5)+32;
+    return fahrenheit;
+}
+
+/**
+This function reverses the bool value.
+@value Bool value to reverse.
+1/18/2021
+*/ 
+bool helper_reverse_bool(bool value)
+{
+    return !value;
 }
\ No newline at end of file