Home
last modified time | relevance | path

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

/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/
Dapp_gpio.c38 const struct gpio_dt_spec led_device[NUM_LED_NUM_BUTTON] = { variable
63 for (i = 0; i < ARRAY_SIZE(led_device); i++) { in app_gpio_init()
64 if (!gpio_is_ready_dt(&led_device[i])) { in app_gpio_init()
67 gpio_pin_configure_dt(&led_device[i], GPIO_OUTPUT_INACTIVE); in app_gpio_init()
Dmain.c92 gpio_pin_set_dt(&led_device[1], vnd_user_data.current == STATE_ON); in update_vnd_led_gpio()
106 gpio_pin_set_dt(&led_device[0], ctl->light->current); in update_led_gpio()
108 gpio_pin_set_dt(&led_device[2], power < 50); in update_led_gpio()
109 gpio_pin_set_dt(&led_device[3], color < 50); in update_led_gpio()
Dapp_gpio.h13 extern const struct gpio_dt_spec led_device[];
/Zephyr-latest/samples/boards/nordic/mesh/onoff-app/src/
Dmain.c146 const struct gpio_dt_spec led_device; member
157 { .led_device = GPIO_DT_SPEC_GET(DT_ALIAS(led0), gpios), },
158 { .led_device = GPIO_DT_SPEC_GET(DT_ALIAS(led1), gpios), },
159 { .led_device = GPIO_DT_SPEC_GET(DT_ALIAS(led2), gpios), },
160 { .led_device = GPIO_DT_SPEC_GET(DT_ALIAS(led3), gpios), },
315 gpio_pin_set_dt(&onoff_state->led_device, onoff_state->current); in gen_onoff_set_unack()
608 if (!gpio_is_ready_dt(&led_onoff_states[i].led_device)) { in main()
612 gpio_pin_configure_dt(&led_onoff_states[i].led_device, GPIO_OUTPUT_INACTIVE); in main()