Arduino Mega, LCD, Ultrasonic sensor, Button

Hello everyone,
I wish to measure a distance using my ultrasonic sensor and display the measured value on my LCD(16x2). Use the button to reinitialise the measured value on the LCD. What code can be adequate for that please?

Hello voch

Welcome to the best Arduino forum ever :slight_smile:

The Arduino IDE provides a lot of code example to get startet.

Thanks @paulpaulson , a link where i can find what i deserve please?

Take a look here:

https://docs.arduino.cc/built-in-examples/

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.