6 years, 6 months ago.

mbed to hcsr04

my project some sort like switch on the led when there is an object within 10 cm. I am new to mbed. As arduino, it is not necessary for getting library , comes to the mbed , it is difficult for me . i tried several coding and it always cant identify my coding which means that i downloaded wrong library. Thank you if some1 can guide me which library that i can use .

1 Answer

6 years, 6 months ago.

Shao,

Drivers for common hardware components can be found in the components library. Specifically here is a link for you : https://os.mbed.com/components/HC-SR04/

-Austin