Library to use the ultrasonic sensor
Dependents: test_ultrasonic AEB Car_Simulator
Ultrasonic.h
- Committer:
- AndreaAndreoli
- Date:
- 2016-06-02
- Revision:
- 0:72ec72845f71
- Child:
- 1:b3518845e71a
File content as of revision 0:72ec72845f71:
#ifndef ULTRASONIC_H #define ULTRASONIC_H #include "mbed.h" #define TRIGGER D2 // The trigger pin #define ECHO D4 // The echo pin void start(); void stop(); void trig(); float read_cm(); void Ultrasonic_init(); #endif