evk_button.h

This module controls button feature of the SPARK EVK board.

Copyright

Copyright (C) 2026 SPARK Microsystems International Inc. All rights reserved.

License

This source code is proprietary and subject to the SPARK Microsystems Software EULA found in this package in file EULA.txt.

Author

SPARK FW Team.

Functions

void evk_buttons_init(void)

Initialize the GPIOs for the buttons.

bool evk_read_btn_state(evk_btn_t btn)

Read the input from the user button.

Parameters:

btn[in] Button number.

Return values:
  • true – Button is pressed.

  • false – Button is not pressed.