Closed ks156 closed 9 years ago
HCSR04Read(trigger_pin, echo_pin)
Example code:
from weioLib.weio import * def setup(): attach.process(myProcess) def myProcess(): while True: print HCSR04Read(0, 1) # trigger pin, echo pin delay(200)
This function return the distance in centimeters.
Merged. Thanks a lot!
Hi ! Is there a way to call HCSR04 from JS ? Cheers
Example code:
This function return the distance in centimeters.