edison-js / Edison

💡Edison can controll microcomputer with TypeScript and React💡
https://edison-js-document.vercel.app/
MIT License
46 stars 6 forks source link

add ultrasonic sensor #36

Open AllenShintani opened 10 months ago

AllenShintani commented 10 months ago

Ultrasonic sensors can send ultrasonic waves and measure distance in the time it takes to receive them. However, JS(TS) may not know how to measure microseconds accurately and may not be able to obtain the correct distance.

Please find a way to make it work correctly.