1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/buttons
Cenk Gündoğan ac1a645fd1
Merge pull request #8190 from kaspar030/name_tests_by_folder
tests: set APPLICATION from folder name
2017-12-01 11:39:19 +01:00
..
tests tests: fix python style 'E302 expected 2 blank lines, found 1' 2017-11-29 17:32:06 +01:00
main.c tests: add on-board button test 2017-06-20 21:27:21 +02:00
Makefile tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01: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.