1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/buttons
Francois Berder d45196e28d tests: buttons: Fix build failure if BTN0_PIN is not declared
On some boards, button 0 does not exist so BTN0_PIN is not defined, but
these boards may define other buttons.

Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2020-04-03 18:48:13 +01:00
..
tests tests: move testrunner import up 2018-08-13 14:11:24 +02:00
main.c tests: buttons: Fix build failure if BTN0_PIN is not declared 2020-04-03 18:48:13 +01:00
Makefile applications: remove 'TEST_ON_CI_WHITELIST += all' 2019-08-21 12:51:17 +02:00
README.md tests: add on-board button test 2017-06-20 21:27:21 +02:00

On-Board Button Test

This tests initializes all on-board buttons available, currently up to 4 in total. Each button is configured as an input with interrupt on button press or release depending on the configured TEST_FLANK.

Expected Result

When a button is pressed (and/or released) an interrupt fires which results in a message indicating which button was used. The test naturally qualifies for manual testing only. Nevertheless, it prints "[SUCCESS]" after all buttons were initialized successfully or "[FAILED] " on error, so it can be used for limited automated testing as well.