1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/leds
Rotzbua d606c11d11 tests/leds: initialize led0 by default
fix unexpected behavior:
reference #9949
reference #10294

fix redefinition for AUTO_INIT_LED0
2019-02-27 13:09:29 +01:00
..
main.c cppcheck: add/correct reason for cppcheck-suppress 2018-09-25 12:03:58 +02:00
Makefile tests/leds: initialize led0 by default 2019-02-27 13:09:29 +01:00
README.md tests/leds: blink ALL defined on-board LEDs 2016-03-15 15:48:46 +01:00

Expected result

This test will blink all available on-board LEDs, one after each other in an endless loop. Each LED will light up once long, and twice short, where the long interval is roughly 4 times as long as the short interval. The length of the interval is not specified and differs for each platform.

Background

Running this test shows if all the direct access macros for all on-board LEDs are working correctly (xx_ON, xx_OFF, xx_TOGGLE). This test is intentionally not using any timers, so it can also be used early on in the porting process, where timers might not yet be available.