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