From 8da293b08e8896dc02d3722ddf595eb0a496f7c0 Mon Sep 17 00:00:00 2001 From: Alexander B Date: Thu, 26 Jun 2025 14:03:27 -0400 Subject: [PATCH] Ultrasonic --- ESP-IDF_Robot/main/ultrasonic.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ESP-IDF_Robot/main/ultrasonic.h b/ESP-IDF_Robot/main/ultrasonic.h index efd1e7ecd..13c0ab29b 100644 --- a/ESP-IDF_Robot/main/ultrasonic.h +++ b/ESP-IDF_Robot/main/ultrasonic.h @@ -1,4 +1,9 @@ #ifndef __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 \ No newline at end of file