Home
last modified time | relevance | path

Searched refs:led2_gpio (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/samples/boards/st/sensortile_box_pro/sensors-on-board/src/
Dmain.c241 const struct gpio_dt_spec led2_gpio = GPIO_DT_SPEC_GET(DT_ALIAS(led2), gpios); in led_pattern_out() local
260 if (!gpio_is_ready_dt(&led2_gpio)) { in led_pattern_out()
261 printk("%s: device not ready.\n", led2_gpio.port->name); in led_pattern_out()
264 gpio_pin_configure_dt(&led2_gpio, GPIO_OUTPUT_INACTIVE); in led_pattern_out()
277 gpio_pin_set_dt(&led2_gpio, ((i % 4) == 2) ? 1 : 0); in led_pattern_out()
285 gpio_pin_set_dt(&led2_gpio, 0); in led_pattern_out()