Morse Code

Any way to make Morse Code output to an LED on a keyboard?

As in make the capslock or scroll lock or some other led on a keyboard flash?

Found something like this
https://www.autoitscript.com/forum/topic/84135-flash-numlock-light/?do=findComment&comment=602969

This too
https://codegolf.stackexchange.com/questions/110974/blink-the-caps-lock

Currently, dietpi-morsecode uses /sys/class/leds/led0 and /sys/class/leds/led1, on most SBCs power and activity LEDs. Some keyboards use such sysfs device as well, which would then be easy to implement by allowing to define the devices which should be toggled. However, most keyboard LEDs cannot be toggled via sysfs, in which case best would be to allow entering custom “turn on” and “turn off” commands, or flashing the mostly available capslock or numlock LEDs via setleds or numlockx commands.

If someone has some shell experience, it shouldn’t be too hard to implement new modes here, extending the Output_On and Output_Off functions: DietPi/dietpi-morsecode at dev · MichaIng/DietPi · GitHub