Searched +full:hc +full:- +full:sr04 (Results 1 – 6 of 6) sorted by relevance
1 # HC-SR04 Ultrasound sensor configuration options4 # SPDX-License-Identifier: Apache-2.07 bool "HC-SR04 Ultrasound distance sensor"12 Enable driver for HC-SR04 distance sensor.
2 # SPDX-License-Identifier: Apache-2.04 description: HC-SR04 ultrasound sensor.6 compatible: "hc-sr04"8 include: sensor-device.yaml11 trigger-gpios:12 type: phandle-array16 echo-gpios:17 type: phandle-array
2 # SPDX-License-Identifier: Apache-2.05 drivers.sensor.hc-sr04:7 - drivers8 - sensor9 - subsys11 - native_sim
2 * SPDX-License-Identifier: Apache-2.07 compatible = "hc-sr04";8 trigger-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;9 echo-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
4 * SPDX-License-Identifier: Apache-2.017 dio-gpios = <&test_gpio 0 0>;22 compatible = "hc-sr04";23 trigger-gpios = <&test_gpio 0 0>;24 echo-gpios = <&test_gpio 1 0>;
3 * SPDX-License-Identifier: Apache-2.019 #error "HC-SR04 not enabled"23 fixture->emul.echo_duration_us = duration_us; \24 zassert_false(sensor_sample_fetch(fixture->dev), "sensor_sample_fetch failed"); \25 zassert_false(sensor_channel_get(fixture->dev, SENSOR_CHAN_DISTANCE, &value), \75 fixture->emul.fail_echo = false; in hcsr04_before()84 if (emul->fail_echo) { in gpio_emul_callback_handler()92 /* Output high-level on echo pin */ in gpio_emul_callback_handler()94 k_busy_wait(emul->echo_duration_us); in gpio_emul_callback_handler()104 fixture->emul.fail_echo = true; in ZTEST_USER_F()[all …]