Searched refs:button_state (Results 1 – 1 of 1) sorted by relevance
128 bool button_state = gpio_pin_get_dt(&button1) == 1; in main() local130 if (button_state && !last_button) { in main()136 if (button_state != last_button) { in main()137 if (button_state) { in main()152 last_button = button_state; in main()