The software on the embedded board now uses interrupts for all the work.
The main thread only sleeps.
Minor polishing.