Hello i'm trying M5stack Basic Development conect ultrasonic sensor model HC-SR04 with GPIO2 (trig) & GPIO5 (echo) for read parameter shown on the screen.
So coding on UI Flow but in platform don't have digital pwm read input function (in Arduino IDE is "pluseIn")
Could there be any object or commands or functions that can be used instead, or how can the program read pulse input ?
thank you so much.