School project.

Dependencies:   Timezone NTPClient BSP_DISCO_F746NG Grove_temperature

Revision:
15:638e65c37d58
Parent:
14:3ac7c08dbc52
--- a/rotary_functions.h	Mon Jan 18 16:13:13 2021 +0000
+++ b/rotary_functions.h	Tue Jan 19 10:05:13 2021 +0000
@@ -23,10 +23,10 @@
 The rotary increases in resistance as the rotary is turned, while the light sensor decreases its resistance as light intensity increases.
 The led_set_blink_rate() function is fitted to the light sensor read values and set to decrease blinking speed the higher the value.
 This function can be used to reverse the value of the registered rotary resistance value so it can be used with the LED blinking function.
-@param rot AnalogIn rotary angle sensor object.
+@param rotary_value Rotary angle sensor read value.
 1/14/2021
 */
-float rotary_reverse_read(AnalogIn rot)
+float rotary_reverse_read(float rotary_value)
 {
-    return (1 - rot.read());
+    return (1 - rotary_value);
 }