1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/pkg/umorse
2024-03-26 14:53:35 +01:00
..
tests tests: move pkg_ application to tests/pkg subdirectory 2023-05-06 07:55:01 +02:00
main.c tests: Use size_t print format specifier 2023-12-21 12:02:37 +01:00
Makefile tests: move pkg_ application to tests/pkg subdirectory 2023-05-06 07:55:01 +02:00
Makefile.ci examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
README.md tests: move pkg_ application to tests/pkg subdirectory 2023-05-06 07:55:01 +02: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.