Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/samples/bluetooth/st_ble_sensor/src/
Dled_svc.c20 static bool led_state; /* Tracking state here supports GPIO expander-based LEDs. */ variable
29 led_state = !led_state; in led_update()
30 LOG_INF("Turn %s LED", led_state ? "on" : "off"); in led_update()
31 gpio_pin_set(led.port, led.pin, led_state); in led_update()
/Zephyr-Core-3.7.0/samples/basic/blinky/src/
Dmain.c26 bool led_state = true; in main() local
43 led_state = !led_state; in main()
44 printf("LED state: %s\n", led_state ? "ON" : "OFF"); in main()
/Zephyr-Core-3.7.0/samples/subsys/mgmt/osdp/peripheral_device/src/
Dmain.c32 int ret, led_state; in main() local
49 led_state = 0; in main()
53 led_state = !led_state; in main()
55 gpio_pin_set(led0.port, led0.pin, led_state); in main()
/Zephyr-Core-3.7.0/samples/drivers/led_is31fl3733/src/
Dmain.c18 static uint8_t led_state[HW_COL_COUNT * HW_ROW_COUNT]; variable
27 memset(led_state, 0, sizeof(led_state)); in led_channel_write()
31 led_state[led_idx] = 0xFF; in led_channel_write()
34 ret = led_write_channels(led, 0, sizeof(led_state), led_state); in led_channel_write()
45 led_state[led_idx] = 0x00; in led_channel_write()
49 ((CONFIG_LED_ROW_COUNT / 2) * HW_COL_COUNT), led_state); in led_channel_write()
/Zephyr-Core-3.7.0/samples/subsys/mgmt/osdp/control_panel/src/
Dmain.c70 int ret, led_state; in main() local
92 led_state = 0; in main()
96 led_state = !led_state; in main()
101 gpio_pin_set(led0.port, led0.pin, led_state); in main()
/Zephyr-Core-3.7.0/samples/net/lwm2m_client/src/
Dled.c21 static uint32_t led_state; variable
31 if (led_val != led_state) { in led_on_off_cb()
44 led_state = led_val; in led_on_off_cb()
/Zephyr-Core-3.7.0/samples/net/secure_mqtt_sensor_actuator/src/
Ddevice.h23 enum led_state { enum
49 int device_write_led(enum led_id led_idx, enum led_state state);
Ddevice.c86 int device_write_led(enum led_id led_idx, enum led_state state) in device_write_led()