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:
- 34:8393ded26b4f
- Parent:
- 29:04e1489f8fe2
File content as of revision 34:8393ded26b4f:
#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