This is a sketch for arduino which can transmit Morse signals into the air. Sketch generates a high frequency squarewave. It contains has a big spectrum of harmonics, so signal will be heard also on frequencies multiples.
In my case fundamental frequency was around 1.22MHz.
Here is video how it works: https://youtu.be/zf0CYI7GF8Y?t=78