1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/pkg_umorse
2021-06-16 11:18:25 +02:00
..
tests tests: move testrunner import up 2018-08-13 14:11:24 +02:00
app.config.test sys/ztimer/kconfig: add defaults for backends 2021-03-04 10:48:27 +01:00
main.c tests/pkg_umorse: Remove xtimer dependency 2021-02-19 15:32:20 +01:00
Makefile tests/pkg_umorse: Remove xtimer dependency 2021-02-19 15:32:20 +01:00
Makefile.ci ztimer: pull ztimer_periph_rtt for ZTIMER_MSEC if available 2021-06-16 11:18:25 +02:00
README.md tests: add test for uMorse package 2017-11-02 09:22:41 +01:00

Description

This test verifies that the uMorse package compiles with RIOT. It also checks its basic functions by encoding a text string into Morse code. The encoded text is printed to the shell using . and _ for DIT (short) and DAH (long) Morse chars. Inter char gaps are represented by (space), inter word gaps are printed as / (dash). Even longer gaps are printed as \n (new line).

The Morse code will be printed 2 times using different encoding strategies provided by uMorse. The first run is printed with delays, i.e., the Morse code is printed with a certain timing. The second run is printed without delay, i.e., Morse code is printed all at once. However, if compiled for a board with a LED0_ON defined, the second run will use the LED0 to blink the Morse encoded text with delays.

Configure delays

The delay can be configured by setting UMORSE_DELAY_DIT, see Makefile. The default in uMorse is 60ms, as this is quite fast for beginners, its set to 120ms for this test and could be further raised, e.g. 240ms.