Aaaaand another update, the last one for now. I am out of this discussion.
This brings two new arguments:
Offset - Adjust where the wheel starts, this defaults to 19 so that 10 is read as 1% instead 0%. Effectively this option also allows to reverse the wheel if you let it start at -2041. That feels surprisingly good, maybe it was meant to be used like that all along?
Command - You can now switch the command called for changing the volume to whatever you like. A simple "amixer set Master %i", and it sets the alsa volume instead pulse. Or how about binding a led to the wheel? No problem, simply set "echo %i >/sys/class/leds/logo:red:top/brightness" and the top led glows according to your _volume_.
Further "Timeout 15" is now the default and volume changes have been added to trigger going back to fast polling.
This upload also contains the little tool "currentcompare" which is handy to find out how much power different tasks take.
It simply reads /sys/class/power_supply/bq27421-0/current_now a few times and averages it.
Next you can repeat that with eg a different screen brightness and it directly spits out how much more power was used. Absolute and in %.