This function checks the state of the button 1. if button1 is pressed then the leds and buzzer start blinking and making sound,repsectively, based on the measurements of the sensor
This functions checks the status of the button 2. if it is pressed then converts the units of the sensor's measurements from meters to centimeters and displays them on the lcd
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.