https://github.com/synthetos/g2G2core has backlash comp, might be worth a look.
The source is here, so you could add those buttons to the ui and recompile GRBLMachine
for your own particular needs.
Time has moved on since the original programmer wrote the plugin and he has left his
details in the about box, so maybe you could contact him and he may add this to the original code
for the newer processors.
A note about backlash compensation in general, it's better to fix the lash problem itself
rather than rely on electronic compensation as backlash comp can only do so much and you will
experience some chatter if you are milling harder materials.
Anyway good luck and have fun.
Dave