When covering the light sensor on the LSB, any fades in the program would take a considerable amount of time to pass. This means they would be visible and it would be very confusing to the end-user. My proposed solution is to add a state variable that updates when the sensor is covered. There will be a guard clause checking if that state variable is set to 'true' in each fade. If so, return out of the function.
When covering the light sensor on the LSB, any fades in the program would take a considerable amount of time to pass. This means they would be visible and it would be very confusing to the end-user. My proposed solution is to add a state variable that updates when the sensor is covered. There will be a guard clause checking if that state variable is set to 'true' in each fade. If so, return out of the function.