W7500 with HC-SR04 and LCD display

Please guys, How to work with the sensor HC-S04 (Ultrassonic). For to do it meassure a single distance in centimeter and print this results in a LCD display using a module i2c.
It is hard to do? for example in arduino platform we use a function called pulseIn.

Thank you!

refer to below URL

Thank you