Waveform generation may not immediately spring to mind with regard to the Microbit as it is a digital device.
However, with the addition of some external logic, waveforms other than pulses can be generated.
This will be realised with a Function Generator, which is a signal generator that produces different types of waveforms.
In this case these waveforms will be sine, sawtooth and pulse with the pulse frequency adjustable over the range 0 to 1MHz.
This project is an enhancement to an earlier project previously published: