mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-10 20:04:22 +00:00
Ultrasonic
This commit is contained in:
@@ -1,4 +1,9 @@
|
|||||||
#ifndef __ULTRASONIC_H__
|
#ifndef __ULTRASONIC_H__
|
||||||
#define __ULTRASONIC_H__
|
#define __ULTRASONIC_H__
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
gpio_num_t trigger_gpio; // GPIO for the trigger pin
|
||||||
|
gpio_num_t echo_gpio; // GPIO for the echo pin
|
||||||
|
} ultrasonic_sensor_t;
|
||||||
|
|
||||||
#endif
|
#endif
|
Reference in New Issue
Block a user