![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Smartage application
Dependencies: BufferedSerial SX1276GenericLib USBDeviceHT mbed Crypto X_NUCLEO_IKS01A2
Fork of STM32L0_LoRa by
hcsr04.h
- Committer:
- marcozecchini
- Date:
- 2018-09-17
- Revision:
- 29:04e1489f8fe2
File content as of revision 29:04e1489f8fe2:
#ifndef hcsr04_H #define hcsr04_H #include "mbed.h" class HCSR04 { public: HCSR04(PinName t, PinName e); long echo_duration(); long distance(); private: DigitalOut trig; DigitalIn echo; Timer timer; long duration,distance_cm; }; #endif