picotap is a tiny TAP generator library (test) and TAP parser (test harness) written in C and JavaScript (Browser & OneMonkey JS). It was inspired by code in kazuho's github projects. If you get stuck ...
After this, press the button that you want to use for tap tempo. Every subsequent tap sets the tempo via tap intervals.