PWM is a very basic way of controlling the outside world. This is an extract from the newly published second edition of my book on programming the micro:bit in C, now covering both the original ...